interface IMatchContext { get matchId(): string; addHandler(opCode: number,
handler: ((payload: Uint8Array) => void)): (() => void); onMatchData(opCode: number,
payload: Uint8Array): void; quit(): void; send(opCode: number,
payload: any): void; } Accessors
matchId
- get matchId(): string
Returns string
Methods
addHandler
- addHandler(opCode, handler): (() => void)
Parameters
- opCode: number
- handler: ((payload: Uint8Array) => void)
- (payload): void
Returns void
Returns (() => void)
onMatchData
- onMatchData(opCode, payload): void
Parameters
- opCode: number
- payload: Uint8Array
Returns void
send
- send(opCode, payload): void
Parameters
- opCode: number
- payload: any
Returns void