core.iwebsocket
Home > @medplum/core > IWebSocket
IWebSocket interface
Generic interface that an implementation of WebSocket
must satisfy to be used with ReconnectingWebSocket
. This is a slightly modified fork of the WebSocket
global type used in Node.
The main key difference is making all the onclose
, onerror
, etc. functions have any[]
args, making data
in send()
of type any
, and making binaryType
of type string, though the particular implementation should narrow each of these implementation-specific types.
Signature:
export interface IWebSocket
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
string | |||
| number | ||
| number | ||
| number | ||
| number | ||
| string | ||
((...args: any[]) => any) | null | |||
((...args: any[]) => any) | null | |||
((...args: any[]) => any) | null | |||
((...args: any[]) => any) | null | |||
| number | ||
| string | ||
| number | ||
| string |
Methods
Method | Description |
---|---|