Parses a JSON string into a client message, rejecting both malformed JSON and structurally invalid messages with a clear reason.
The raw JSON text received on the socket.
The parse result.
Parses a JSON string into a client message, rejecting both malformed JSON and structurally invalid messages with a clear reason.