Hierarchy

Constructors

Properties

_matchmakingInfo: undefined | IMatchmakingInfo
buffer?: Uint8Array
bufferOffset?: number
bufferPacketId?: number
clientSecret: string
lastPacketNumberReceived?: number
lastPacketNumberSent?: number
log: default
matchmakingIdentifier: string
name: string = "WebWorkerConnection"
pid?: number
playerIdentifier: undefined | string
playerSteamId: undefined | string

Accessors

  • get maxMessageSize(): number
  • Returns number

Methods

  • Returns void

  • Parameters

    • milliseconds: number
    • callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Clears queued packets

    Returns void

  • Returns boolean

  • Parameters

    • closeImmediately: boolean

    Returns void

  • Returns boolean

  • Returns void

  • Returns void

  • Sends queued packets w/ flow control

    Returns void

  • Queues a packet to be sent soon Note: packets are serialized when queued

    Parameters

    Returns void

  • Queues data to be sent soon

    Parameters

    • data: ArrayBuffer
    • Optional packetNumber: number

    Returns void

  • Sends data by posting a message note: buffer cannot be transfered to the workers because there could be multiple clients and it wouldn't work out

    Parameters

    • data: Uint8Array
    • byteOffset: number
    • Optional length: number

    Returns boolean

  • Sends a ping packet to the server every so often. The server should send back a pong packet.

    Returns void

  • Sends a packet to the connection w/ flow control

    Parameters

    Returns void

Generated using TypeDoc