Channels are the backbone of the ChatKitty chat experience. Users join channels to receive or send messages.
ChatKitty organizes conversations into dedicated contexts called channels. Channels structure and order your application's chat experience. You can create a channel for any topic, project, or team.
After a user joins a channel, the user becomes a channel member. ChatKitty broadcasts messages created in channels to channel members with active chat sessions and sends push notifications to offline members. ChatKitty persists messages sent in a channel by default but this behaviour can be configured.
64-bit integer identifier associated with this channel
The type of this channel. DIRECT, PUBLIC, or PRIVATE
The unique name of this channel
The user who created this channel. Absent if the channel was created with the Platform API
The message that was last received in this channel
Custom data associated with this channel
There are three types of channels:
Direct channels let users have private conversations with up to 9 other users. New users cannot be added to a direct channel and there can only exist one direct channel between a set of users.
Public channels let users discuss topics openly. By default, any user can view and join a public channel. Users can join public channels by themselves or via invites from an existing channel member.
Private channels are for topics that should not be open to all members. Users must be added to a private channel by someone who's already a member of the channel.
User [ ]
An array of member users of this channel
Creating a channel
Create a new channel of channel type (DIRECT, PUBLIC, or PRIVATE) with a unique name for public and private channels and member references for direct channels. A user is automatically a member of a channel they created.