clockworklabs / com.clockworklabs.spacetimedbsdk

The SpacetimeDB SDK for C# clients
https://spacetimedb.com
Apache License 2.0
6 stars 0 forks source link

Fix Connection Error: Success #166

Closed jdetter closed 1 month ago

jdetter commented 1 month ago

Description of Changes

This PR edits the handling of errors related to websocket connections and disconnections. In particular, clients and users would often run into the dreaded Connection Error: Success message which was confusing and frustrating. This PR better addresses the error by providing more guidance and debug info for the user. It is unfortunately still suboptimal because the HttpStatusCode is not available in the .NET core version that Unity supports. We try to be as helpful as possible in this scenario.

API

Requires SpacetimeDB PRs

No changes to SpacetimeDB required.

Testing

I, Tyler, have tested this and confirmed it to be working with CircleGame. Here is a sample of the output in the case of Connection Error: Success:

image
cloutiertyler commented 1 month ago

Put it to rest, once and for all!