Skip to main content

core.medplumclient.fhircastconnect

Home > @medplum/core > MedplumClient > fhircastConnect

MedplumClient.fhircastConnect() method​

Connects to a FHIRcast session.

Signature:

fhircastConnect(subRequest: SubscriptionRequest, options?: FhircastConnectionOptions): FhircastConnection;

Parameters​

Parameter

Type

Description

subRequest

SubscriptionRequest

The SubscriptionRequest to use for connecting.

options

FhircastConnectionOptions

(Optional) Options for the underlying ReconnectingWebSocket.

Returns:

FhircastConnection

A FhircastConnection which emits lifecycle events for the FHIRcast WebSocket connection.