Chat / Unreal
Current version: v3
Chat Unreal v3
Chat Unreal
Chat
Unreal
Home
/
Chat
/
Unreal
/
Channels

Retrieve a channel by URL

A channel url is a unique identifier of a group channel, which you can use to retrieve a channel instance.

Open channelGroup channel
SBDOpenChannel::GetChannel(CHANNEL_URL, [](SBDOpenChannel* openChannel, SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

Note: We recommend that you save a user's channel URLs to handle the lifecycle or state changes of your app. For example, when a user is disconnected from the Sendbird server due to switching to another app temporarily, you can provide a smooth restoration of the user's state by using the saved URL to fetch the appropriate channel instance, then re-entering the user into the channel.