openRoom
openRoom(
__namedParameters,clock):RoomConnection
Defined in: packages/engine/src/stores/roomConnection.ts:90
Opens a socket to the room and joins it under the player’s name, and
pings each room that welcomes her into clock, as the welcome lands
and each pingIntervalSeconds after. When
the room is not there yet or goes away, as on a restart, it opens
another every reconnectSeconds until the room answers and joins it,
or until reconnectGiveUpSeconds pass with no socket open.
ponytail: a fixed interval, for a room on this machine; a hosted room’s
reconnect policy would back off.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
RoomOptions |
clock |
RoomClock |