Type Alias ReconnectingWebsocket
ReconnectingWebsocket: {
close: (() => void);
isConnected: (() => boolean);
open: (() => Promise<boolean>);
send: ((data:
| string
| ArrayBufferLike
| ArrayBufferView
| Blob) => void);
}
Type declaration
close: (() => void)
isConnected: (() => boolean)
- (): boolean
Returns boolean
open: (() => Promise<boolean>)
- (): Promise<boolean>
Returns Promise<boolean>
send: ((data:
| string
| ArrayBufferLike
| ArrayBufferView
| Blob) => void)
- (data): void
Parameters
- data:
| string
| ArrayBufferLike
| ArrayBufferView
| Blob
Returns void
Closes websocket, disabling reconnection