stream-livechat-room

Subscribe

This is the room messages stream. You just need the room ID for subscribing.

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, just pass __my_messages__ as the room ID.

Last updated

Rocket.Chat versions receive support for six months after release.