davebryson/erlang_websocket — Issue #3: websocket_client API fails to properly parse messages if server sends them in rapid succession.
Author: goberman
Created: 2012-01-11 15:15:04+00:00
State: open

I have found a problem: websocket_client fails to properly parse messages if server sends them in rapid succession. I have a Jetty WebSocket Java server that generates Json messages.
I have JavaScript test client and websocket_client Erlang connected to the same server.

If server sends Json messages rapidly, websocket_client sometimes pushes these concatenated (separated by special characters) in onmessage(Data).
This causes Json parser to generate exception.