Notify Logged-In Users
    • Dark
      Light
    • PDF

    Notify Logged-In Users

    • Dark
      Light
    • PDF

    Article summary

    Stream for logged-in users.

    Events

    • Users:NameChanged

    • Users:Deleted

    • updateAvatar

    • updateEmojiCustom

    • deleteEmojiCustom

    • roles-change

    • user-status

    Example call

    {
        "msg": "sub",
        "id": "7489",
        "name": "stream-notify-logged",
        "params":[
            "user-status",
            false
        ]
    }

    Example response

    user-status

    Event about user status changes.

    {
        "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.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence