Notify a room about some specific events.
Events
Typing
user-activity
Example call
{
"msg": "method",
"method": "stream-notify-room",
"id": "42",
"params": [
... // params varies
]
}
Typing
You can notify a room about a user typing on the keyboard.
Payload parameters
Argument | Example | Required | Description |
---|---|---|---|
|
| Required | The room ID followed by |
|
| Required | The username. |
|
| Required | A boolean indicating if the user is typing ( |
Example call
{
"msg": "method",
"method": "stream-notify-room",
"id": "42",
"params": [
"room-id/typing",
"username",
true
]
}
user-activity
You can notify a room about user activity like typing on the keyboard.
Payload parameters
Argument | Example | Required | Description |
---|---|---|---|
|
| Required | The room is followed by |
|
| Required | The username. |
|
| Required | A boolean indicating if the user is typing ( |
| {} |
Example call
{
"msg": "method",
"method": "stream-notify-room",
"id": "42",
"params": [
"room-id/user-activity",
"username",
["user-typing"],
{}
]
}