From 6153aaaa611c14e8cd328f3f19844abaa55af6d2 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Fri, 24 Oct 2025 11:28:50 +0100 Subject: [PATCH] chat: remove [chat] qualifier from documentation This was recently deprecated. --- src/pages/docs/chat/setup.mdx | 9 ++++++--- src/pages/docs/guides/chat/build-livestream.mdx | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/docs/chat/setup.mdx b/src/pages/docs/chat/setup.mdx index 715bbddc9e..fdb0aafdaf 100644 --- a/src/pages/docs/chat/setup.mdx +++ b/src/pages/docs/chat/setup.mdx @@ -33,10 +33,13 @@ API keys and tokens have a set of [capabilities](/docs/auth/capabilities) assign | Typing indicators | `publish`, `subscribe` | | Room reactions | `publish`, `subscribe` | -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: +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: -* `[chat]*` or -* `[*]*` +* `my-chat-room` or +* `dms:*` or +* `*` + +For more guidance, see the [capabilities documentation](/docs/auth/capabilities). ## Install diff --git a/src/pages/docs/guides/chat/build-livestream.mdx b/src/pages/docs/guides/chat/build-livestream.mdx index ccb7bc6c2e..72300d6d59 100644 --- a/src/pages/docs/guides/chat/build-livestream.mdx +++ b/src/pages/docs/guides/chat/build-livestream.mdx @@ -93,7 +93,7 @@ const currentTime = Math.round(Date.now() / 1000); const claims = { "iat": currentTime, /* current time in seconds */ "exp": currentTime + 14400, /* time of expiration in seconds */ - "x-ably-capability": "{\"[chat]foo\":[\"publish\", \"subscribe\"]}", + "x-ably-capability": "{\"foo\":[\"publish\", \"subscribe\"]}", "x-ably-clientId": "your-client-id", }