What steps will reproduce the problem?
1. Create a WebSocket through your API
2. Send a message before the "open" or "onopen" was triggered
What is the expected output? What do you see instead?
I expect that the message is not sent but kept in a cache. When the connection
is etablished, the message is sent.
Or maybe the send function returns me "false", or the send function throws an
error, or I expect I could choose different behavior through your WebSocket
options.
As to me, the best behavior would be : the send function waits for the
websocket to connect and if the websocket do not connect until a fixed delay (5
sec?), an error is thrown.
Instead, I see this error:
"Uncaught Error: INVALID_STATE_ERR: DOM Exception 11"
return this._send($.toJSON(m)); // jquery.websocket-0.0.1.js:39
$.extend.websocket.ws.send
What version of the product are you using? On what operating system?
Windows XP + Chrome 17.0.963.56 m
jquery-1.7.1.min.js
jquery.websocket-0.0.1.js
jquery.json-2.3.min.js
Please provide any additional information below.
Original issue reported on code.google.com by puig.ced...@gmail.com on 27 Feb 2012 at 3:46
Original issue reported on code.google.com by
puig.ced...@gmail.com
on 27 Feb 2012 at 3:46