Creating community channels
The Chat SDK (Chat SDK) does not provide client-side APIs for creating community channels or subchannels. Use the Server API to create them.
Workflow
The typical workflow for creating a community channel involves your app client and app server:
- The app client sends a request to your app server to create a community channel.
- Your app server calls the Nexconn Server API to create the community channel.
- The Server API returns the channel ID and other details to your app server.
- Your app server stores the channel information and returns it to the app client.
- The app client can then use the channel ID to send messages, retrieve subchannels, and more.
The same workflow applies to creating subchannels within a community channel.
Server APIs
| Operation | Server API |
|---|---|
| Create a community channel | Create Community Channel |
| Create a subchannel | Create Subchannel |
| Delete a subchannel | Delete Subchannel |
| Update community channel profile | Update Community Channel |
| Dismiss a community channel | Dismiss Community Channel |
Managing channel lists
Your app server is responsible for maintaining the community channel list and subchannel list for each user. When users open your app, the client should request these lists from your app server.
The client SDK provides getSubChannels() to retrieve a list of subchannels the current user has joined within a community channel. However, a complete subchannel list (including ones the user has not joined) should be maintained on your app server.