Skip to content

Releases: albeebe/websocket

Improved WebSocket Error Handling and Stability (v1.0.2)

07 Dec 23:37
Compare
Choose a tag to compare

Improvements:

  • Enhanced error handling with panic recovery in readMessages and SendMessage.
  • 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)

23 Oct 21:18
Compare
Choose a tag to compare

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)

19 Oct 17:16
Compare
Choose a tag to compare

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.