I'm getting lots of error reports with:
Chrome:
Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
Safari complains with:
InvalidStateError: The object is in an invalid state.
and in Firefox it's:
An attempt was made to use an object that is not, or is no longer, usable
Im not 100% sure if I'm doing everything right, so here is how i do it in TypeScript
Hello there!
I'm getting lots of error reports with: Chrome: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state. Safari complains with: InvalidStateError: The object is in an invalid state. and in Firefox it's: An attempt was made to use an object that is not, or is no longer, usable
Im not 100% sure if I'm doing everything right, so here is how i do it in TypeScript
I expect the WebSocket to be ready when the connect callback gets called (onConnect). Or am I misunderstanding something?