Interface IMatchContext

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

Methods

  • Parameters

    • opCode: number
    • handler: ((payload: Uint8Array) => void)
        • (payload): void
        • Parameters

          • payload: Uint8Array

          Returns void

    Returns (() => void)

      • (): void
      • Returns void