channel

inline fun Realtime.channel(channelId: String, builder: RealtimeChannelBuilder.() -> Unit = {}): RealtimeChannel(source)

Creates a new RealtimeChannel and adds it to the Realtime.subscriptions

  • This method does not subscribe to the channel. You have to call RealtimeChannel.subscribe to do so.

  • If a channel with the same channelId already exists, it will be returned

Parameters

channelId

The id of the channel

builder

The builder for the channel


inline fun SupabaseClient.channel(channelId: String, builder: RealtimeChannelBuilder.() -> Unit = {}): RealtimeChannel(source)

Creates a new RealtimeChannel