connected is Boolean(snapshot), so it is only true once the client is in a room and h… #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens:
connectedisBoolean(snapshot), so it is only true once the client is in a room and has received astatemessage; the server never sendsstateto a client outside a room, so on the landing page it stays false even while the socket is connected. It reads like the socket connection state but is really 'has a room snapshot'.Where: packages/client/src/App.tsx (window.__app.state(), the
connectedfield)How it was seen:
__app.state().connected === trueand timed out for 60s on the landing page; waiting for__appto exist (Socket.IO buffers emits until the connection opens) works.Found by Braid's run
run_01M739SHHJF7V8J6XYCJ4QT8QY, outside the work it was doing.