Skip to content

WebGL: stop CancelConnection() throwing on an open socket - #108

Merged
endel merged 4 commits into
masterfrom
fix/webgl-cancel-connection
Oct 26, 2026
Merged

endel merged 4 commits into
masterfrom
fix/webgl-cancel-connection

Conversation

@endel

@endel endel commented Oct 26, 2026

Copy link
Copy Markdown
Owner

CancelConnection() on an open WebGL socket closed it with 1006, which browsers reject in close(), so it threw (and Colyseus' Connection.Drop() with it). It now closes with 1000 and still reports Abnormal (1006) to OnClose, like the other platforms.

The first commit restores the push-only guard on the NuGet publish job. With it commented out, a pull request from a branch in this repo ran dotnet nuget push with the API key; only --skip-duplicate kept the PR from publishing. Because a PR runs the workflow from its own branch, this PR's CI already runs with the guard.

Changelog entry under ## 2.0.8. The version isn't bumped, so merging publishes nothing.

Not tested in a browser yet.

🤖 Generated with Claude Code

endel added 2 commits October 26, 2026 13:16
Pull requests from branches in this repo get the API key, so every PR run
packed and pushed the current version; only --skip-duplicate kept one from
publishing.

Assisted-by: Claude Opus 5.5
Browsers only accept 1000 or 3000-4999 in close(), so closing with 1006
threw; Colyseus' Connection.Drop() threw with it.

Assisted-by: Claude Opus 5.5
endel added 2 commits October 26, 2026 15:49
Assisted-by: Claude Opus 5.5
A pull request that bumps the version ran the UPM branch update and the
GitHub release from the PR, before it was merged.

Assisted-by: Claude Opus 5.5
@endel
endel merged commit bf3280c into master Oct 26, 2026
5 checks passed
@endel
endel deleted the fix/webgl-cancel-connection branch October 26, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant