Releases: albeebe/websocket
Releases · albeebe/websocket
Improved WebSocket Error Handling and Stability (v1.0.2)
Improvements:
- Enhanced error handling with panic recovery in
readMessages
andSendMessage
. - Added thread-safe message sending using a mutex in
writeMessages
. - Improved handling of closed channels and context cancellation.
- Better management of outgoing message buffer overflows with graceful connection closure.
Connection Closure Notification Enhancement (v1.0.1)
This release includes a minor enhancement to the connection closure behavior:
Changes:
- Improved how the Disconnected channel behaves. Previously, the channel would only trigger if the WebSocket connection closed due to an error. Now, it will notify listeners even when you manually disconnect, passing a nil error in that case. This ensures that listeners are always aware of a closed connection, whether it was intentional or due to an issue, making it easier to handle connection events reliably.
Initial Release of WebSocket Client Library (v1.0.0)
This is the first stable release of the WebSocket client library.
Features:
- Establishes a WebSocket connection to a given URL.
- Handles bi-directional communication with text and binary messages.
- Manages graceful connection closure and error handling.
- Includes unit tests for:
- Connecting to a WebSocket server.
- Sending and receiving messages.
- Properly handling disconnections.