atomic-data-browser
atomic-data-browser copied to clipboard
WebSocket connecting status not handled correctly: `Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.`
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.