core.subscriptionrequest | Medplum

SubscriptionRequest type [​](/content/docs/sdk/core.subscriptionrequest#subscriptionrequest-type "Direct link to SubscriptionRequest type"/index.html)

A FHIRcast subscription request.

Can be passed to MedplumClient.fhircastConnect or MedplumClient.fhircastUnsubscribe to either open a FHIRcast connection, or unsubscribe from the subscription.

Signature:

export type SubscriptionRequest = {

channelType: 'websocket';

mode: 'subscribe' | 'unsubscribe';

events: FhircastEventName[];

topic: string;

endpoint: string;

};

References: FhircastEventName