Hierarchy

Constructors

  • Parameters

    • steamNetworking: ISteamworksNetworking
    • hostSteamId: string
    • matchmakingInfo: undefined | IMatchmakingInfo
    • matchmakingIdentifier: string
    • onData: ((data: ArrayBuffer) => void)
        • (data: ArrayBuffer): void
        • Parameters

          • data: ArrayBuffer

          Returns void

    • Optional onConnected: ((matchmakingInfo: IMatchmakingInfo) => void)
    • Optional connectGlobalMatchmakingServer: (() => void)
        • (): void
        • Returns void

    Returns SteamNetworkConnection

Properties

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

Accessors

  • get steamIdRemote(): undefined | string
  • Steam id of the peer

    Returns undefined | string

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 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: ArrayBuffer | Uint8Array

      Data to send

    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