ChatClient.
Authentication Flow
- Your auth server authenticates the user
- Your auth server issues an Ably-compatible token (JWT format is recommended for most apps)
- The client SDK fetches tokens with
authCallbackand refreshes them automatically before expiry - The authenticated Pub/Sub client is passed into
ChatClient
Server Setup
Create an endpoint that validates user-provided credentials and returns JWTs with the appropriate Chat capabilities:- Tab Title
- Tab Title
Client Setup
- Tab Title
- Tab Title
Chat Capabilities
Capabilities are permissions that control what operations a client can perform:Room-scoped Capabilities
You can scope capabilities to specific rooms, a namespace of rooms, or all rooms:my-chat-room- a specific roomdms:*- all rooms in thedms:namespace*- all chat rooms
Next Steps
- Learn about connections
- Start building with rooms
- Explore message features
