A snapshot of this connection's bandwidth usage
Close the connection.
Unregisters the handler for these events.
Registers a handler for the 'send' or 'recv' events. Called when a new message is to be sent.
Registers a handler for the 'close' event. Called when the connection was closed.
Registers a handler for the 'error' event. Called when the connection experiences an error.
Receives a message.
Sends a message.
Interface for sending and receiving messages with a client.