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

**Signature:**

```typescript
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;

};

};
```

- [SubscriptionEventMap type](/content/docs/sdk/core.subscriptioneventmap#subscriptioneventmap-type/index.html)
