stream-room-messages
This is the room messages stream. You just need the room ID for subscribing.
1
{
2
"msg": "sub",
3
"id": "unique-id",
4
"name": "stream-room-messages",
5
"params":[
6
"room-id",
7
false
8
]
9
}
Copied!
To unsubscribe from a room, send "unsub", along with the ID of the previous subscribe message.
1
{
2
"msg": "unsub",
3
"id": "unique-id",
4
}
Copied!
If you want to subscribe to a user's messages stream, just pass __my_messages__ as the room ID.
Last modified 9mo ago
Export as PDF
Copy link
Edit on GitHub