Skip to main content

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:

  1. The app client sends a request to your app server to create a community channel.
  2. Your app server calls the Nexconn Server API to create the community channel.
  3. The Server API returns the channel ID and other details to your app server.
  4. Your app server stores the channel information and returns it to the app client.
  5. 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

OperationServer API
Create a community channelCreate Community Channel
Create a subchannelCreate Subchannel
Delete a subchannelDelete Subchannel
Update community channel profileUpdate Community Channel
Dismiss a community channelDismiss 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.

tip

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.