C#: Private channel

Creates a private channel. The server authorizes the join against your Row Level Security policies on realtime.messages. The join carries the client's current access token, so a policy that uses auth.uid() sees the signed-in user.

Examples

Join a private channel

var channel = supabase.Realtime.PrivateChannel($"user:{userId}");
var broadcast = channel.Register<CursorBroadcast>();

await channel.Subscribe();