Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (21 loc) · 444 Bytes

stream-room-messages.md

File metadata and controls

27 lines (21 loc) · 444 Bytes

stream-room-messages

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

{
    "msg": "sub",
    "id": "unique-id",
    "name": "stream-room-messages",
    "params":[
        "room-id",
        false
    ]
}

Unsuscribe from a room

{
    "msg": "unsub",
    "id": "ddp-room",
}

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