Realtime error

Cant connect to realtime using c# Do i need any configuration?
// Initialize the Supabase client
Supabase = new Supabase.Client(
"https://*****.supabase.co",
"*******",
new SupabaseOptions()
{
SessionHandler = new UnitySessionPersistence(),
AutoRefreshToken = true,
AutoConnectRealtime = true
}
);
// Initialize the Supabase client
Supabase = new Supabase.Client(
"https://*****.supabase.co",
"*******",
new SupabaseOptions()
{
SessionHandler = new UnitySessionPersistence(),
AutoRefreshToken = true,
AutoConnectRealtime = true
}
);
` this is my code but it throws exception if AutoConnectRealtime is true
4 Replies
jinwin4642
jinwin4642OP3h ago
The error Failed to enter game: Supabase.Realtime.Exceptions.RealtimeException: Failed to start Websocket client , error: 'Unable to connect to the remote server' ---> Websocket.Client.Exceptions.WebsocketException: Failed to start Websocket client , error: 'Unable to connect to the remote server' ---> System.Net.WebSockets.WebSocketException: Unable to connect to the remote server at System.Net.WebSockets.WebSocketHandle.ParseAndValidateConnectResponseAsync (System.IO.Stream stream, System.Net.WebSockets.ClientWebSocketOptions options, System.String expectedSecWebSocketAccept, System.Threading.CancellationToken cancellationToken) [0x0010a] in <aeff17eeef8b44e48cc7a7fdb59f3ab4>:0 at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore (System.Uri uri, System.Threading.CancellationToken cancellationToken, System.Net.
nope_7
nope_73h ago
i am also facing the same issue 2025-10-22T04:01:56Z app[d8991d5c2321e8] sea [info]2025-10-22 04:01:56,933 INFO [] o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 6395 ms 2025-10-22T04:01:57Z app[d8991d5c2321e8] sea [info]2025-10-22 04:01:57,859 INFO [] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting... 2025-10-22T04:01:57Z app[d8991d5c2321e8] sea [info]2025-10-22 04:01:57,878 INFO [] com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed. 2025-10-22T04:02:58Z app[d8991d5c2321e8] sea [info]2025-10-22 04:02:58,358 WARN [] com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Pool is empty, failed to create/setup connection (1fab43de-d39c-4a3c-a9d7-b3b392ed85c8) 2025-10-22T04:02:58Z app[d8991d5c2321e8] sea [info]org.postgresql.util.PSQLException: The connection attempt failed. is your DB hosted on us-east-2?
jinwin4642
jinwin4642OP3h ago
us-east-1
nope_7
nope_73h ago
my beta is working fine but my prod is having the issue. both are hosted in us-east-2

Did you find this page helpful?