Skip to content

five-on-it / packages/protocol/src/transport / CLOSE_CODES

Variable: CLOSE_CODES ​

const CLOSE_CODES: object

Defined in: packages/protocol/src/transport.ts:18

The codes a game server closes a connection with when a room refuses it: a join token that does not check out, a player voted out, no such room (an unknown one, a test level asked for by name), a room full (or the server: past its players, or too slow to take more), the server at a cap of rooms it was given (rooms: a room it would have to open, its default room, its levels' and its runs' all counting), at its cap of runs (runs: a debug run's room it would have to open), the server restarting (draining for maintenance). The client tells the player which.

Type Declaration ​

full ​

readonly full: 4409 = 4409

kicked ​

readonly kicked: 4403 = 4403

noRoom ​

readonly noRoom: 4404 = 4404

restarting ​

readonly restarting: 4503 = 4503

rooms ​

readonly rooms: 4429 = 4429

runs ​

readonly runs: 4430 = 4430

unauthorized ​

readonly unauthorized: 4401 = 4401