Fixed a bug with too long messages causing ProtocolError in WebSocketJSON