def onLeave(self, details):
        if details.reason.startswith('wamp.error.'):
            self.log.error('{reason}: {wamp_message}', reason=details.reason, wamp_message=details.message)

        if self._transport:
            self.disconnect()
        # do we ever call onLeave with a valid transport?
Return the Enum value at a given index.
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/wamp/protocol.py/ApplicationSession.onLeave--crossover with--dataset/ETHPy150Open openstack/nova/nova/objects/fields.py/ResourceClass.from_index