Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract implementation of a peer suitable for use with a WebSocket instance.

Hierarchy

Index

Constructors

constructor

Properties

Protected debug

debug: Debugger

id

id: ArrayBuffer

The unique identifier of this peer.

Protected Readonly transportOptions

transportOptions: TransportOptions

Protected Optional version

version?: number

Accessors

connected

  • get connected(): boolean

latency

  • get latency(): number

onConnect

  • get onConnect(): Subscribable<this, []>

onData

onDisconnect

  • get onDisconnect(): Subscribable<this, []>

Methods

Protected abort

Protected didConnect

  • didConnect(): void

disconnect

  • disconnect(): void

Protected forceConnect

  • forceConnect(id: ArrayBuffer): void

Protected handleDisconnect

Protected localPublicSecurity

  • localPublicSecurity(): undefined | ArrayBuffer

Protected negotiateAsClient

  • negotiateAsClient(): void

Protected negotiateAsServer

  • negotiateAsServer(): void

Protected queueNegotiationTimeout

  • queueNegotiationTimeout(): void

Protected receiveData

Protected remotePublicSecurity

  • remotePublicSecurity(): undefined | ArrayBuffer

Protected requestDisconnect

send

  • send<T>(type: T, payload: PeerMessage<T>): Promise<void>

setSocket

Generated using TypeDoc