Repository navigation
What's Changed
- Fixed missing
DisconnectionHappenednotifications whenClientWebSocketrejects an invalid close frame, such as close status1100. The client now emits exactly oneDisconnectionType.Lostnotification with the originalWebSocketException, whether automatic reconnection is enabled or disabled. Fixes #160 via #161. - Preserved
CancelReconnection, normal server-initiated closing, andCancelClosingbehavior 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