Skip to content

Commit 28bdbe9

Browse files
committed
chat: remove [chat] qualifier from documentation
This was recently deprecated.
1 parent c7398ab commit 28bdbe9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/pages/docs/chat/setup.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ API keys and tokens have a set of [capabilities](/docs/auth/capabilities) assign
3333
| Typing indicators | `publish`, `subscribe` |
3434
| Room reactions | `publish`, `subscribe` |
3535

36-
When setting the capabilities for Chat, you need to apply them to either a wildcard resource, or a wildcard resource prefixed with the chat namespace, for example:
36+
When setting the capabilities for Chat, you can apply them to specific chat rooms, a group of chat rooms in a common namespace, or all chat rooms:
3737

38-
* `[chat]*` or
39-
* `[*]*`
38+
* `my-chat-room` or
39+
* `dms:*` or
40+
* `*`
41+
42+
For more guidance, see the [capabilities documentation](/docs/auth/capabilities).
4043

4144
## Install <a id="install"/>
4245

src/pages/docs/guides/chat/build-livestream.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const currentTime = Math.round(Date.now() / 1000);
9393
const claims = {
9494
"iat": currentTime, /* current time in seconds */
9595
"exp": currentTime + 14400, /* time of expiration in seconds */
96-
"x-ably-capability": "{\"[chat]foo\":[\"publish\", \"subscribe\"]}",
96+
"x-ably-capability": "{\"foo\":[\"publish\", \"subscribe\"]}",
9797
"x-ably-clientId": "your-client-id",
9898
}
9999

0 commit comments

Comments
 (0)