Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IConnection

Hierarchy

  • IConnection

Implemented by

Index

Properties

Optional buffer

buffer: Uint8Array

Optional bufferOffset

bufferOffset: number

Optional bufferPacketId

bufferPacketId: number

Optional lastPacketNumberReceived

lastPacketNumberReceived: number

Optional lastPacketNumberSent

lastPacketNumberSent: number

matchmakingIdentifier

matchmakingIdentifier: string

Optional pid

pid: number

playerIdentifier

playerIdentifier: string

queuedPackets

queuedPackets: IPacket[]

Methods

addTimeout

  • addTimeout(milliseconds: number, callback: function): void
  • Parameters

    • milliseconds: number
    • callback: function
        • (): void
        • Returns void

    Returns void

close

  • close(): void
  • Returns void

getState

  • Returns ConnectionState

isConnected

  • isConnected(): boolean
  • Returns boolean

processMatchmakingMessage

  • Parameters

    Returns Promise<boolean>

send

  • send(data: ArrayBuffer): void
  • Parameters

    • data: ArrayBuffer

    Returns void

setState

  • Parameters

    Returns void

Generated using TypeDoc