atomicdata-dev / atomic-data-browser

This repo is no longer used! Code is moved to Atomic-Server
https://github.com/atomicdata-dev/atomic-server/issues
MIT License
56 stars 9 forks source link

WebSocket connecting status not handled correctly: `Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.` #261

Open joepio opened 1 year ago

joepio commented 1 year ago

I keep getting these errors, also in production. This is because the authenticate method in websockets.ts can fire an event before a connection is open.

We should probably check if the connection is open, and if it is not, wait for the connection to be ready.