subscribeToChannel

abstract suspend fun subscribeToChannel(channel: Channel): RainbowResult<Channel>

Subscribe to a specific channel.

This method allows a user to subscribe to the given channel. Once subscribed, the user will start receiving notifications and updates related to the channel's content.

Return

A RainbowResult containing the updated Channel object on success. In case of failure, it will include error details.

Parameters

channel

The Channel object to which the user will subscribe.