connected is Boolean(snapshot), so it is only true once the client is in a room and h… #18

Open
opened 2026-11-10 23:58:45 -05:00 by cmoriarty · 0 comments
Owner

What happens: connected is Boolean(snapshot), so it is only true once the client is in a room and has received a state message; the server never sends state to 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 connected field)

How it was seen:

  • The group-1 smoke test first waited on __app.state().connected === true and timed out for 60s on the landing page; waiting for __app to exist (Socket.IO buffers emits until the connection opens) works.

Found by Braid's run run_01M739SHHJF7V8J6XYCJ4QT8QY, outside the work it was doing.

**What happens:** `connected` is `Boolean(snapshot)`, so it is only true once the client is in a room and has received a `state` message; the server never sends `state` to 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 `connected` field) **How it was seen:** - The group-1 smoke test first waited on `__app.state().connected === true` and timed out for 60s on the landing page; waiting for `__app` to exist (Socket.IO buffers emits until the connection opens) works. Found by Braid's run `run_01M739SHHJF7V8J6XYCJ4QT8QY`, outside the work it was doing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/scratch-vllm-fp8#18
No description provided.