Properties
Readonly remoteId
remoteId: string
Methods
handleMessage
- handleMessage(message: Message): any
off
- off<EventName>(eventName: EventName, handler: SocketEventSet[EventName]): any
-
Type parameters
Parameters
-
eventName: EventName
-
handler: SocketEventSet[EventName]
Returns any
on
- on<EventName>(eventName: EventName, handler: SocketEventSet[EventName]): any
-
Type parameters
Parameters
-
eventName: EventName
-
handler: SocketEventSet[EventName]
Returns any
once
- once<EventName>(eventName: EventName, handler: SocketEventSet[EventName]): any
-
Type parameters
Parameters
-
eventName: EventName
-
handler: SocketEventSet[EventName]
Returns any
send
- send(message: string): Promise<any>
- send(message: Blob): Promise<any>
- send(message: ArrayBuffer): Promise<any>
- send(message: ArrayBufferView): Promise<any>
-
Parameters
Returns Promise<any>
-
Parameters
Returns Promise<any>
-
Parameters
Returns Promise<any>
-
Parameters
Returns Promise<any>