Leave channels
Requires App Context
To set up and manage channel membership, you must enable App Context for your app's keyset in the Admin Portal.
Use the Leave()
method to remove user's channel membership and unsubscribe them from receiving messages and events. Additionally, all the other listeners get the presence update that the user has left the channel and the membership is also removed from the channel.
Method signature
This method has the following signature:
1channel.Leave()
Input
This method doesn't take any parameters.
Output
This method returns an awaitable Task<ChatOperationResult>
.
Sample code
Leave the support
channel.
1