Converts binary messages to/from byte arrays.
Converts binary messages to/from ByteStrings.
Converts messages to/from a JSON high level object.
Converts messages to/from a JSON high level object.
If the input messages fail to be parsed, the WebSocket will be closed with an 1003 close code and the parse error serialised to JSON.
Converts messages to/from JsValue
Converts text messages to/from Strings.