(self, data)
Handles an incoming COMMAND message.
Handles an incoming COMMAND message.
Handles an incoming COMMAND message .
def _receive_protocol(self, data):
        """ Handles an incoming COMMAND message. """

        if data[COMMAND_ATTR_TYPE] == COMMAND_TYPE_PING:
            self._send_protocol({COMMAND_ATTR_TYPE: COMMAND_TYPE_PONG})
        else:
            BaseSubprotocol._receive_protocol(self, data)
def _receive_protocol ( self , data ) : if data [ COMMAND_ATTR_TYPE ] == COMMAND_TYPE_PING : self . _send_protocol ( { COMMAND_ATTR_TYPE : COMMAND_TYPE_PONG } ) else : BaseSubprotocol . _receive_protocol ( self , data )