Skip to content

RoomStatus

Defined in: packages/engine/src/stores/room.ts:9

Where the client stands with its room.

Closed: "closed"

Defined in: packages/engine/src/stores/room.ts:21

No room: none was asked for, none answered for a minute, or it refused her.


Connecting: "connecting"

Defined in: packages/engine/src/stores/room.ts:12

The socket is opening, or open and waiting for the welcome; or no room has answered yet, and it tries again each second.


Joined: "joined"

Defined in: packages/engine/src/stores/room.ts:15

The welcome has arrived: the world is the room’s, and her hero is claimed.


Reconnecting: "reconnecting"

Defined in: packages/engine/src/stores/room.ts:18

The room went away, as on a restart: the socket is trying it again each second, to join it afresh.