Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Connection Error: Success #166

Merged
merged 9 commits into from
Oct 30, 2024
Merged

Conversation

jdetter
Copy link
Collaborator

@jdetter jdetter commented Oct 12, 2024

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

@jdetter jdetter changed the title Changes we did on stream Fix Connection Error: Success Oct 12, 2024
@jdetter jdetter changed the base branch from master to staging October 12, 2024 07:35
@jdetter jdetter force-pushed the jdetter/fix-connection-error-success branch from 4c9b423 to 240b220 Compare October 12, 2024 07:36
@cloutiertyler cloutiertyler requested a review from gefjon October 30, 2024 02:53
@cloutiertyler
Copy link
Collaborator

Put it to rest, once and for all!

@jdetter jdetter marked this pull request as ready for review October 30, 2024 14:32
@lcodes lcodes force-pushed the jdetter/fix-connection-error-success branch from a5311e9 to 3760dbc Compare October 30, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants