# openemail.realtime

The live event sockets: a mailbox's change events, and an identity's calendar and contacts changes, over WebSocket.

Its 2 methods, each a page of its own, in the order the API reference presents them:

| Method | What it does | It calls |
| --- | --- | --- |
| [`realtime.mailbox`](/docs/sdks/typescript/realtime/mailbox) | Subscribe to live mailbox change events over WebSocket | [`GET /mailboxes/{mailboxId}/events`](/docs/api/messages/get_MailboxEvents) |
| [`realtime.pim`](/docs/sdks/typescript/realtime/pim) | Subscribe to live calendar and contacts change events over WebSocket | [`GET /identities/{identityId}/pim/events`](/docs/api/pim/get_PimEvents) |

In the API reference: [Messages](/docs/api/messages), [PIM](/docs/api/pim).
