SpacetimeDB
SpacetimeDB copied to clipboard
Adding Abort to C# Websocket
Description of Changes
The implementation of a solution to #3044 , this adds an Abort function to the WebSocket, which runs if Disconnect is called when the WebSocket is not connected.
API and ABI breaking changes
Not API breaking.
Expected complexity level and risk
1
Testing
- [X] Test locally with a C# CLI test client.
Note: Before change (either on Rust of C# server), server would see 4
Debuglog entries about connecting, but not see theInfolog about the client connection ending like would normally be seen in a disconnect. After change, server shows no log entries at all, because connection is properly aborted. - [x] Test locally with a C# WebGL test client.