This page explains the key functions of open channels in Sendbird UIKit for React, demonstrating how to chat in a channel and configure the channel settings.
Open channels are a public chat that allows a massive number of users to interact with one other in a more dynamic environment. Open channels can accommodate far more users compared to group channels and don’t require an invitation for the users to enter. To learn more about different behaviors of open channels and group channels, see Channel types on how open channels and group channels work.
An open channel allows dynamic interaction among a massive number of users. Open channels can be easily created and managed without the need for complex implementation.
The following table lists the channel properties and functions supported by UIKit for React.
Creates a new channel with params. Signature:(store) => (GroupChannelParams) => Promise<(GroupChannel, error)>
getEnterOpenChannel
Joins a channel. Signature:(store) => (channelUrl) => Promise<(_, error)>
getExitOpenChannel
Leaves a channel. Signature:(store) => (channelUrl) => Promise<(_, error)>
getOpenChannelSendUserMessage
Returns a promise chain which sends a user message to a specific channel. Signature:(store) => (channelUrl, UserMessageParams) => Promise<(PendingMessage, error)> => Promise<(UserMessage, error)>
getOpenChannelSendFileMessage
Returns a promise chain to send a file message to a specific channel. Signature:(store) => (channelUrl, FileMessageParams) => Promise<(PendingMessage, error)> => Promise<(FileMessage, error)>
getOpenChannelUpdateUserMessage
Updates a user message. Signature:(store) => (channelUrl, messageId, UserMessageParams) => Promise<(UserMessage, error)>
getOpenChannelDeleteMessage
Deletes a user message. Signature:(store) => (channelUrl, message) => Promise<(_, error)>
getOpenChannelResendUserMessage
Resends a failed user message. Signature:(store) => (channelUrl, FailedUserMessage) => Promise<(Message, error)>