Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RelaySocket

Hierarchy

  • RelaySocket

Implements

Index

Constructors

constructor

Properties

Private _ee

_ee: EventEmitter<SocketEventSet> = new EventEmitter<SocketEventSet>()

Private _remoteId

_remoteId: string

Private debug

debug: boolean

Private relayClient

relayClient: UhstRelayClient

Private Optional relayMessageStream

relayMessageStream: MessageStream

Private Optional sendUrl

sendUrl: undefined | string

Private token

token: string

Accessors

remoteId

  • get remoteId(): string

Methods

close

  • close(): void

handleMessage

  • handleMessage(message: Message): void

handleRelayError

  • handleRelayError(): void

handleRelayEvent

Private initClient

  • initClient(hostId: string): Promise<void>

off

  • off<EventName>(eventName: EventName, handler: SocketEventSet[EventName]): void

on

  • on<EventName>(eventName: EventName, handler: SocketEventSet[EventName]): void

once

  • once<EventName>(eventName: EventName, handler: SocketEventSet[EventName]): void

send

  • send(message: string): Promise<any>
  • send(message: Blob): Promise<any>
  • send(message: ArrayBuffer): Promise<any>
  • send(message: ArrayBufferView): Promise<any>

Generated using TypeDoc