Skip to content

client websockets automatic reconnection#23

Open
danielvcorreia wants to merge 3 commits intowavecomtech:mainfrom
danielvcorreia:websockets/automatic-reconnection
Open

client websockets automatic reconnection#23
danielvcorreia wants to merge 3 commits intowavecomtech:mainfrom
danielvcorreia:websockets/automatic-reconnection

Conversation

@danielvcorreia
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds automatic WebSocket reconnection support to the Omlox Go client, including new configuration options and documentation/examples to demonstrate usage.

Changes:

  • Introduce WithReconnect(minWait, maxWait) and ReconnectOptions to configure reconnect behavior.
  • Add reconnect loop logic that attempts to re-dial and resubscribe after connection loss.
  • Document and exemplify reconnection usage in README and Go examples.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
client_websockets.go Implements reconnect loop, backoff/jitter, resubscribe flow, and adjusts pending-subscription cleanup behavior.
client_configuration.go Adds reconnect configuration to ClientConfiguration and exposes WithReconnect option.
client.go Adds fields to track reconnect goroutine lifecycle.
omlox_test.go Adds an example demonstrating WithReconnect.
README.md Documents reconnection and adds a usage snippet.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@danielvcorreia danielvcorreia force-pushed the websockets/automatic-reconnection branch from 0c7cae8 to 213d0e6 Compare April 27, 2026 09:33
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@wavecomtech wavecomtech deleted a comment from Copilot AI Apr 27, 2026
@danielvcorreia danielvcorreia deleted the websockets/automatic-reconnection branch April 27, 2026 09:42
@danielvcorreia danielvcorreia restored the websockets/automatic-reconnection branch April 27, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants