Skip to content

Commit

Permalink
fix build?
Browse files Browse the repository at this point in the history
  • Loading branch information
bfops committed Oct 30, 2024
1 parent d40e8e5 commit 3018c2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples~/quickstart/client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ void OnConnect(DbConnection conn, Identity identity, string authToken)
.Subscribe("SELECT * FROM Message");
}

void OnConnectError(WebSocketError? error, string message)
void OnConnectError(Exception e)
{

}

void OnDisconnect(DbConnection conn, WebSocketCloseStatus? status, WebSocketError? error)
void OnDisconnect(DbConnection conn, Exception? e)
{

}
Expand Down
4 changes: 1 addition & 3 deletions src/WebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Codice.Client.GameUI.Update;
using UnityEngine;

namespace SpacetimeDB
{
Expand Down Expand Up @@ -82,7 +80,7 @@ public async Task Connect(string? auth, string host, string nameOrAddress, Addre
}
else
{
if (OnConnectError != null)
if (OnConnectError != null)
{
dispatchQueue.Enqueue(() => OnConnectError(
new Exception($"WebSocket connection failed. Current state: {Ws.State}")));
Expand Down

0 comments on commit 3018c2e

Please sign in to comment.