Chat SDK offers a set of handy methods to create your own feature-rich chat or add a chat to your existing application.
Chat SDK is written in TypeScript and relies on the existing JavaScript SDK.
It's framework-agnostic and lets you build client-side or server-side chat apps using any JavaScript-based framework, like:
- React
- React Native
- Vue
- Angular
- Nest
- Express
Chat SDK offers a wide range of features to build direct, group, and public chats.
Explore these documentation sections for details:
- Channels - manage channels, join or leave them, invite other chat members, or reference channel names in messages through hashtags.
- Users - manage users, track user's presence, mention users, manage permissions or report users for misbehaving.
- Messages - manage messages, add reactions, forward messages to others, pin them to channels, add quotes or links, create threads or send files, report offensive messages, or shows users how many messages they missed while they were offline through unread messages.
Also, add typing indicators, push notifications, and more.
Test our sample Chat SDK apps created in various frameworks:
Source code | Framework | Description |
---|---|---|
Direct chat | React | Basic 1:1 support chat letting you exchange messages between a user and a support agent. |
Group chat | React Native | Feature-full group chat letting you test most of the features offered by the Chat SDK. |
Access Manager API service | NestJS | Backend service creating an authentication key endpoint for users, integrated with PubNub's Chat SDK to generate Access Manager authentication tokens with appropriate permissions. It allows for controlled access to all channels and reflects user-specific restrictions, with tokens expiring after 15 minutes. |
You'll find all the information about working with Chat SDK in the official PubNub Chat SDK documentation.