SpacetimeDB
SpacetimeDB copied to clipboard
If my token is incorrect, the SDK should tell me that that is the case, rather than it just saying that it couldn't connect
Right now:
WebSocketException: Unable to connect to the remote server
System.Net.WebSockets.WebSocketHandle.ParseAndValidateConnectResponseAsync (System.IO.Stream stream, System.Net.WebSockets.ClientWebSocketOptions options, System.String expectedSecWebSocketAccept, System.Threading.CancellationToken cancellationToken) (at <bcb2428cc11d4f819c07c640b17b2d4b>:0)
System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore (System.Uri uri, System.Threading.CancellationToken cancellationToken, System.Net.WebSockets.ClientWebSocketOptions options) (at <bcb2428cc11d4f819c07c640b17b2d4b>:0)
System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore (System.Uri uri, System.Threading.CancellationToken cancellationToken) (at <bcb2428cc11d4f819c07c640b17b2d4b>:0)
SpacetimeDB.WebSocket.Connect (System.String auth, System.String host, System.String nameOrAddress, SpacetimeDB.Address clientAddress) (at /home/lead/work/clockwork/com.clockworklabs.spacetimedbsdk/Scripts/WebSocket.cs:71)
UnityEngine.Debug:LogException(Exception)
SpacetimeDB.UnityDebugLogger:LogException(Exception) (at /home/lead/work/clockwork/com.clockworklabs.spacetimedbsdk/Scripts/UnityDebugLogger.cs:25)
SpacetimeDB.Logger:LogException(Exception) (at /home/lead/work/clockwork/com.clockworklabs.spacetimedbsdk/Scripts/ISpacetimeDBLogger.cs:26)
SpacetimeDB.<Connect>d__23:MoveNext() (at /home/lead/work/clockwork/com.clockworklabs.spacetimedbsdk/Scripts/WebSocket.cs:76)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback()
Goal:
Unable to connect to server because of an issue with your Identity token? Is this the correct token for this server?