forked from RocketChat/docs-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Documentation: README.md for stream-livechat-room (RocketChat#895)
* 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
1 parent
c981075
commit dc903f7
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
developer-guides/realtime-api/livechat-api/streamlivechatroom/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
``` |