Relay comment points at where agent mode now holds the clock
This commit is contained in:
parent
b74fe1bda6
commit
95fd50b0bb
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ function createRelay({ server } = {}) {
|
|||
|
||||
const send = (ws, o) => { if (ws.readyState === 1) ws.send(JSON.stringify(o)); };
|
||||
// Presence goes both ways: tools learn whether a page is connected, the page learns how many
|
||||
// tools are — agent mode holds the game's clock while none are (src/game/98-agent.js).
|
||||
// tools are — agent mode holds the game's clock while none are (src/agent/80-relay.js).
|
||||
const presence = () => {
|
||||
const p = !!(page && page.readyState === 1);
|
||||
const n = [...tools].filter((t) => t.readyState === 1).length;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue