Skip to main content

core.subscriptionrequest

Home > @medplum/core > SubscriptionRequest

SubscriptionRequest type

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