(self)
When connection is opened initiate the protocol handlers.
When connection is opened initiate the protocol handlers.
When connection is opened initiate the protocol handlers .
def opened(self):
        """ When connection is opened initiate the protocol handlers. """
        _OPEN_CLIENTS.append(self._weakref)

        self.handlers[PROTOCOL_COMMAND] = CommandSubprotocol(self)

        _known_prot = KNOWN_PROTOCOLS

        # Instantiate supported subprotocols.
        for protocol in self.supported_protocols:
            handler = _known_prot.get(protocol)

            if handler:
                self.handlers[protocol] = handler(self)
            else:
                self.logger.warning(
                    "Unsupported protocol: {}".format(protocol))
def opened ( self ) : _OPEN_CLIENTS . append ( self . _weakref ) self . handlers [ PROTOCOL_COMMAND ] = CommandSubprotocol ( self ) _known_prot = KNOWN_PROTOCOLS # Instantiate supported subprotocols. for protocol in self . supported_protocols : handler = _known_prot . get ( protocol ) if handler : self . handlers [ protocol ] = handler ( self ) else : self . logger . warning ( "Unsupported protocol: {}" . format ( protocol ) )