##Events supported

###Server

* `connection`: no arguments

###Socket

By bubbling the events from the standard websocket transport layer:

* `open`: no arguments
* `close`: no arguments
* `error`: injects a standard javascript error object with `message`, `type`, and `description` fields 

_Rpc Socket_ events:

* `beforeReceive`: injects a network-level `message` argument
* `afterReceive`: injects a network-level `message` argument
* `beforeSend`: injects a network-level `message` argument
* `afterSend`: injects a network-level `message` argument

A network-level message is an object with the following fields: 

* `data` : the user data
* `messageType`: the message type
* `msgid`: in case of an RPC, the message ID
* `rpc`: in case of an RPC, the role of this message in the rpc process: `request` or `reply`

