Skip to content

Version 5.5.1

Latest

Choose a tag to compare

@Marfusios Marfusios released this 24 Sep 14:00
9c3d42b

What's Changed

  • Fixed missing DisconnectionHappened notifications when ClientWebSocket rejects an invalid close frame, such as close status 1100. The client now emits exactly one DisconnectionType.Lost notification with the original WebSocketException, whether automatic reconnection is enabled or disabled. Fixes #160 via #161.
  • Preserved CancelReconnection, normal server-initiated closing, and CancelClosing behavior without duplicate disconnection notifications.
  • Added seven regression cases using real WebSocket connections and raw close frames.
  • Stabilized existing tests: wait for the server greeting before injecting fake messages, and verify the final connection after rapid reconnects without depending on greetings from sockets that were immediately closed.
  • Switched NuGet publishing to Trusted Publishing with short-lived OIDC credentials.

Compatibility and Validation

  • No public API changes or changes to supported target frameworks: .NET Standard 2.0/2.1 and .NET 6/7/8/9/10.
  • All 58 tests passed in GitHub Actions, alongside the .NET Framework 4.7.2 sample and benchmark builds on Windows.
  • Local Release solution build completed with zero warnings or errors. The corrected rapid-reconnect test also passed ten consecutive runs.
  • Websocket.Client 5.5.1 is available on NuGet. The downloaded package's NuGet.org repository signature was verified with dotnet nuget verify --all.

Full changelog: v5.5...v5.5.1