five-on-it / packages/protocol/src/transport / CLOSE_CODES
Variable: CLOSE_CODES
constCLOSE_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
readonlyfull:4409=4409
kicked
readonlykicked:4403=4403
noRoom
readonlynoRoom:4404=4404
restarting
readonlyrestarting:4503=4503
rooms
readonlyrooms:4429=4429
runs
readonlyruns:4430=4430
unauthorized
readonlyunauthorized:4401=4401