- // Receive processes a message received from the client. If
- // the returned response is non-nil, it will be queued and
- // sent the client.
- Receive(map[string]interface{}, []byte) []byte
+ // Receive processes a message received from the client. If a
+ // non-nil error is returned, the connection will be
+ // terminated.
+ Receive([]byte) error