--- title: "Notify Logged-In Users (Realtime)" slug: "notify-logged-in-users-realtime" updated: 2024-12-04T11:00:16Z published: 2024-12-04T11:00:16Z canonical: "developer.rocket.chat/notify-logged-in-users-realtime" --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Notify Logged-In Users (Realtime) Stream for logged-in users. ## Events - `Users:NameChanged` - `Users:Deleted` - `updateAvatar` - `updateEmojiCustom` - `deleteEmojiCustom` - `roles-change` - `user-status` ## Example call ```json {    "msg": "sub",    "id": "7489",    "name": "stream-notify-logged",    "params":[        "user-status",        false    ] } ``` ## Example response ### user-status Event about user status changes. ```json {    "msg": "changed",    "collection": "stream-notify-logged",    "id": "id",    "fields": {        "eventName": "user-status",        "args": [["uNqJeFuag2344i62k", "rocket.cat", 1]]    } } ``` The `args` property will always be an array with the following values: | Argument | Example | Description | | --- | --- | --- | | `user_id` | `uNqJeFuag2344i62k` | The user ID. | | `username` | `rocket.cat` | The username. | | `status` | `1` | The indicator of the user status. The integers represent the following: 0 - `offline`, 1-`online`, 2 - `away`, 3 - `busy`. |