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;
};
close: {
type: 'close';
};
heartbeat: {
type: 'heartbeat';
payload: Bundle;
};
};