Constructors
constructor
-
Parameters
-
-
-
requestedHostId: string | undefined
-
debug: boolean
Properties
Private _ee
_ee
: EventEmitter<HostEventSet> = new EventEmitter<HostEventSet>()
Private clients
clients
: Map<string, UhstSocket> = new Map<string, UhstSocket>()
Private debug
debug: boolean
Private Optional relayMessageStream
Methods
broadcast
- broadcast(message: string): Promise<any>
- broadcast(message: Blob): Promise<any>
- broadcast(message: ArrayBuffer): Promise<any>
- broadcast(message: ArrayBufferView): Promise<any>
-
Parameters
Returns Promise<any>
-
Parameters
Returns Promise<any>
-
Parameters
Returns Promise<any>
-
Parameters
Returns Promise<any>
Private init
- init(requestedHostId?: undefined | string): Promise<void>
-
Parameters
-
Optional requestedHostId: undefined | string
Returns Promise<void>
off
- off<EventName>(eventName: EventName, handler: HostEventSet[EventName]): void
-
Type parameters
Parameters
-
eventName: EventName
-
handler: HostEventSet[EventName]
Returns void
on
- on<EventName>(eventName: EventName, handler: HostEventSet[EventName]): void
-
Type parameters
Parameters
-
eventName: EventName
-
handler: HostEventSet[EventName]
Returns void
once
- once<EventName>(eventName: EventName, handler: HostEventSet[EventName]): void
-
Type parameters
Parameters
-
eventName: EventName
-
handler: HostEventSet[EventName]
Returns void