def get_channel_id(self, channel_id_type=None): """ Implements :func:`autobahn.wamp.interfaces.ITransport.get_channel_id` """ return transport_channel_id(self.transport, is_server=False, channel_id_type=channel_id_type)
def _create_transport_details(self): """ Internal helper. Base class calls this to create a TransportDetails """ is_secure = self.transport.get_extra_info('peercert', None) is not None if is_secure: secure_channel_id = { 'tls-unique': transport_channel_id(self.transport, False, 'tls-unique'), } else: secure_channel_id = {} return TransportDetails(peer=self.peer, is_secure=is_secure, secure_channel_id=secure_channel_id)
def _create_transport_details(self): """ Internal helper. Base class calls this to create a TransportDetails """ is_secure = self.transport.get_extra_info('peercert', None) is not None if is_secure: secure_channel_id = { u'tls-unique': transport_channel_id(self.transport, False, 'tls-unique'), } else: secure_channel_id = {} return TransportDetails(peer=self.peer, is_secure=is_secure, secure_channel_id=secure_channel_id)
def get_channel_id(self, channel_id_type=u'tls-unique'): """ Implements :func:`autobahn.wamp.interfaces.ITransport.get_channel_id` """ return transport_channel_id(self.transport, False, channel_id_type)
def get_channel_id(self, channel_id_type=u'tls-unique'): """ Implements :func:`autobahn.wamp.interfaces.ITransport.get_channel_id` """ return transport_channel_id(self.transport, False, channel_id_type)