Assume the websocket protocol for messages.

According to the spec a message looks like `{data: 'serialized
message'}`.