Leave channels

Requires App Context

Enable App Context for your keyset in the Admin Portal.

Remove a user's channel membership with leave().

Method signature​

This method has the following signature:

1channel.leave() async throws

Input​

This method doesn't take any parameters.

Output​

ParameterDescription
VoidIndicates that the operation completed successfully with no additional data.

Sample code​

Sample code

The code samples in Swift Chat SDK focus on asynchronous code execution.

You can also write synchronous code as the parameters are shared between the async and sync methods but we don't provide usage examples of such.

Leave the support channel.

1

Was this page useful?

Last updated on