A class representing a
EventTarget and emits 3 lifecycle events: 1.
connect - An event to signal when a WebSocket connection has been opened. Fired as soon as a WebSocket emits
message - Contains a
payload field containing a
FHIRcast message payload exactly as it comes in over WebSockets. 3.
disconnect - An event to signal when a WebSocket connection has been closed. Fired as soon as a WebSocket emits
To close the connection, call
connection.disconnect() and listen to the
disconnect event to know when the connection has been disconnected.
export declare class FhircastConnection extends TypedEventTarget<FhircastSubscriptionEventMap>
|(constructor)(subRequest)||Creates a new |