1681-engine / index / LobbyClientEvents
Interface: LobbyClientEvents ​
Defined in: src/net/lobby/LobbyClient.ts:20
Properties ​
cancelled ​
ts
cancelled: object;Defined in: src/net/lobby/LobbyClient.ts:27
match ​
ts
match: string;reason ​
ts
reason: "left" | "timeout" | "declined";requeued ​
ts
requeued: boolean;change ​
ts
change: undefined;Defined in: src/net/lobby/LobbyClient.ts:22
Anything in the client's state changed: redraw the lobby screen.
chat ​
ts
chat: object;Defined in: src/net/lobby/LobbyClient.ts:23
from ​
ts
from: number;text ​
ts
text: string;error ​
ts
error: object;Defined in: src/net/lobby/LobbyClient.ts:24
code ​
ts
code: LobbyErrorCode;message ​
ts
message: string;found ​
ts
found: PendingMatch;Defined in: src/net/lobby/LobbyClient.ts:26
kicked ​
ts
kicked: undefined;Defined in: src/net/lobby/LobbyClient.ts:25
start ​
ts
start: object;Defined in: src/net/lobby/LobbyClient.ts:29
Go and play: data is what the server's onStart gave you.
data ​
ts
data: unknown;match ​
ts
match: string;mode ​
ts
mode: string;players ​
ts
players: MatchPlayer[];