Presence Events
Presence lifecycle events published to the presence-events Kafka topic.
Source: Presence Service
Events
presence.online
Emitted when a user comes online in a room.
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string (uuid) | Yes | User identifier. |
room_id | string (uuid) | Yes | Room the user is in. |
display_name | string | No | User's display name. |
tenant_id | string (uuid) | No | Tenant identifier. |
presence.offline
Emitted when a user goes offline.
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string (uuid) | Yes | User identifier. |
room_id | string (uuid) | No | Room the user was in. |
tenant_id | string (uuid) | No | Tenant identifier. |
reason | string | No | One of: leave, disconnect, ttl_expired. |
presence.idle
Emitted when a user becomes idle.
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string (uuid) | Yes | User identifier. |
idle_since | string (date-time) | No | When the user became idle. |