Hierarchy

  • IConnection

Implemented by

Properties

buffer?: Uint8Array
bufferOffset?: number
bufferPacketId?: number
clientSecret: string
isConnected: boolean
isLocalPlayer: boolean
lastPacketNumberReceived?: number
lastPacketNumberSent?: number
matchmakingIdentifier: string
maxMessageSize: number
name: string
pid?: number
playerIdentifier: undefined | string
playerSteamId: undefined | string

Methods

  • Returns void

  • Returns void

  • Parameters

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

    Returns void

  • Clears queued packets

    Returns void

  • Returns boolean

  • Parameters

    • closeImmediately: boolean

    Returns void

  • Parameters

    Returns Promise<boolean>

  • Sends queued packets w/ flow control

    Returns void

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

    Parameters

    Returns void

  • Sends data to the connection

    Returns

    True when sent, false when it was not sent and should be retried. Throws an error if something very bad happened

    Parameters

    • data: Uint8Array

      Data to send

    • byteOffset: number
    • Optional length: number

    Returns boolean

  • Returns void

  • Sends a packet to the connection w/ flow control

    Parameters

    Returns void

Generated using TypeDoc