For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Unsubscribe from a channel

Unsubscribes and removes Realtime channel from Realtime client.

Examples

Remove a channel

let channel = await supabase.channel("channelId")

//...
await supabase.removeChannel(channel)

Unsubscribe from a channel

let channel = await supabase.channel("channelId")

//...
await channel.unsubscribe()