Skip to content

Commit

Permalink
New Documentation: README.md for stream-livechat-room (RocketChat#895)
Browse files Browse the repository at this point in the history
* Added readme for stream-livechat-room

Added README.md for stream-livechat-room method to subscribe to livechat room

* Updated toc.yml

Updated toc.yml file to reflect the table of contents of new added entry.

* Update README.md
  • Loading branch information
shraddharsh authored and MartinSchoeler committed Nov 21, 2018
1 parent c981075 commit dc903f7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions _data/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
- registerGuest
- sendMessageLivechat
- sendOfflineMessage
- streamlivechatroom
- Rest API:
- Assets:
- setAsset
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Method: `stream-livechat-room`

## DDP message

```json

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

```

## Response

```json
{
"msg":"ready",
"subs":[
"JHalkajwdh67"
]
}
```

0 comments on commit dc903f7

Please sign in to comment.