SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Adding Abort to C# Websocket

Open rekhoff opened this issue 3 months ago • 0 comments

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 Debug log entries about connecting, but not see the Info log 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.

rekhoff avatar Oct 03 '25 15:10 rekhoff