Skip to content

Conversation

@danielvcorreia
Copy link
Contributor

@danielvcorreia danielvcorreia commented Nov 26, 2025

This web-socket reconnect feature aims to combat a problem that we have with our services that use the omlox-client-go.

Once in a while, our Omlox Hub server closes the active web-socket connections (because of lack of resources, high load, etc.), which makes the services to restart. With this re-connect feature, the client will transparently try to re-establish the web-socket connection and all the subscribed topics based on the default or custom policies. If a re-connection happens successfully, the services don't need to restart, fixing our current problem.

@danielvcorreia
Copy link
Contributor Author

/review

@jose-saramago
Copy link

jose-saramago bot commented Nov 26, 2025

Code Review 📋

client_websockets.go

Issues Found:

  • Bug - Line 295 : The comment indicates that deephub doesn't return the sid in subsequent messages, which is marked as a bug needing fix. This affects subscription management.
  • Bug - Line 360 : Same issue as above; the function returns 0 for sid, indicating an unresolved problem with subscription ID handling.

Generated by Prow code-review Plugin at 2025-11-26 16:21:32 WET with the provider openRouter using the model @preset/pipeline-review (preset mode) with response model qwen/qwen3-coder-plus

@danielvcorreia danielvcorreia merged commit 6cea857 into dev Nov 26, 2025
2 of 3 checks passed
@danielvcorreia danielvcorreia deleted the feat/web-socket-reconnect branch December 12, 2025 10:50
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.

1 participant