(self, event, message)
request Event Handler (Default)

        This is a default event handler to respond to ``request`` events
        by converting the given message to bytes and firing a ``write``
        event to a hopefully connected client socket.
        Components may override this, but be sure to respond to
        ``request`` events by either explicitly calling this method
        or sending your own ``write`` events as the client socket.
request Event Handler (Default)
request Event Handler ( Default )
def request(self, event, message):
        """request Event Handler (Default)

        This is a default event handler to respond to ``request`` events
        by converting the given message to bytes and firing a ``write``
        event to a hopefully connected client socket.
        Components may override this, but be sure to respond to
        ``request`` events by either explicitly calling this method
        or sending your own ``write`` events as the client socket.
        """

        event.stop()
        message.encoding = self.encoding
        self.fire(write(bytes(message)))
def request ( self , event , message ) : event . stop ( ) message . encoding = self . encoding self . fire ( write ( bytes ( message ) ) )