Subscribe exception csharp

Hello! I am trying to use c# and the 'supabase' nuget package to listen to broadcasted messages.
I am currently playing around with this locally on my machine using a a local supabase instance
using docker on Windows.

In the dashboard, I am using the realtime inspector to join a channel called 'test-channel', then using the code below
to try and get messages from that channel.

NOTE: Using dotnet 9.0

Here is my code:
using Newtonsoft.Json;
using Supabase.Realtime.Models;

var url = "http://127.0.0.1:64321";
var key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU";

var options = new Supabase.SupabaseOptions
{
    AutoConnectRealtime = true
};

var supabase = new Supabase.Client(url, key, options);
await supabase.InitializeAsync();

var channel = supabase.Realtime.Channel("test-channel");
var broadcast = channel.Register<Broadcast>();

// Listen for all broadcast events, filter for 'shout' inside the handler
broadcast.AddBroadcastEventHandler((sender, baseBroadcast) =>
{
    var response = broadcast.Current();
});

await channel.Subscribe();

class Broadcast : BaseBroadcast
{
    [JsonProperty("message")]
    public string? Message { get; set; }
}


I get the following exception on the line 'await channel.Subscribe();' every single time, no matter what I try.

Exception has occurred: CLR/Supabase.Realtime.Exceptions.RealtimeException
An exception of type 'Supabase.Realtime.Exceptions.RealtimeException' occurred in System.Private.CoreLib.dll but was not handled in user code: '{"ref":"014789de-eb97-4d4f-91f1-d6f022f7063a","event":"phx_reply","payload":{"status":"error","response":{"reason":"Unknown Error on Channel"}},"topic":"realtime:test-channel"}'
   at Program.<<Main>$>d__0.MoveNext() in K:\SOFTWARE-DEVELOPMENT\PLAYGROUNDS\supa-dotnet-playground\supa-dotnet-playground\Program.cs:line 24
Was this page helpful?