Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
/live sends everyone a coalesced presence frame {type:'presence', here, signedIn, watching} within 1 s of a connect or disconnect - lobby and test only #358
Sign in to join this conversation.
Split from #291, which was parked after its preview deploy failed (pull #295). This is the server half only: the page does not change.
Done:
Software/so101/src/lobby.tskeeps the counts (every open/livesocket, the signed-in people counted once each, and anonymous watchers), and broadcasts{type:'presence', here, signedIn, watching}at most once per second after a change. A burst of connects sends one frame. A new socket gets the current frame at once.src/lobby.test.ts: the counts rise on connect and fall on disconnect, two tabs of one signed-in person count once insignedIn, and a burst of five connects is one frame.lobby.tsandlobby.test.tschange. forge.json is untouched, andbun --cwd Software/so101 testpasses.