On this page

Leave channels

Requires App Context

Enable App Context for your keyset in the Admin Portal.

Remove a user's channel membership with Leave(). The user will stop receiving messages and events, and other listeners receive a presence update.

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

Last updated on