Skip to main content

core.medplumclient.fhircastunsubscribe

Home > @medplum/core > MedplumClient > fhircastUnsubscribe

MedplumClient.fhircastUnsubscribe() method

Unsubscribes from the specified topic.

Signature:

fhircastUnsubscribe(subRequest: SubscriptionRequest): Promise<void>;

Parameters

Parameter

Type

Description

subRequest

SubscriptionRequest

A SubscriptionRequest representing a subscription to cancel. Mode will be set to unsubscribe automatically.

Returns:

Promise<void>

A Promise that resolves when request to unsubscribe is completed.