Skip to main content

core.subscriptioneventmap

Home > @medplum/core > SubscriptionEventMap

SubscriptionEventMap type

Signature:

export type SubscriptionEventMap = {
connect: {
type: 'connect';
payload: {
subscriptionId: string;
};
};
disconnect: {
type: 'disconnect';
payload: {
subscriptionId: string;
};
};
error: {
type: 'error';
payload: Error;
};
message: {
type: 'message';
payload: Bundle;
};
open: {
type: 'open';
};
close: {
type: 'close';
};
heartbeat: {
type: 'heartbeat';
payload: Bundle;
};
};