- // Receive processes a message received from the client. If
- // the returned list of messages is non-nil, they will be
- // queued for sending to 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