Subscribe to Livechat Room
    • Dark
      Light
    • PDF

    Subscribe to Livechat Room

    • Dark
      Light
    • PDF

    Article summary

    Subscribe

    This is the room messages stream. You need the room ID to subscribe.

    DDP message

    {
        "msg":"sub",
        "id":"6NctZomXL3ZdtKNsn",
        "name":"stream-livechat-room",
        "params":[
            "KTZqPAR9DQGxKcxzf",
            {
                "useCollection":false,
                "args":[
                    {
                        "token":"jkGaw6duhiuh45"
                    }
                ]
            }
        ]
    };

    Sample response

    {
        "msg":"ready",
        "subs":[
            "JHalkajwdh67"
        ]
    j

    Unsubscribe

    To unsubscribe from a room, send "unsub", along with the ID of the previous subscribe message.

    {
        "msg": "unsub",
        "id": "unique-id",
    }

    If you want to subscribe to a user's messages stream, pass __my_messages__ as the room ID.


    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