Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket Termination Fixed #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ITACHI2337
Copy link

Addressing issue #127,

  1. Added a new reconnect() function.
  2. Added the main run() loop.
  3. Added sendHealthCheck() and sendDeviceRequest() functions.
  4. used websocket.IsUnexpectedCloseError() to identify unexpected closures.
  5. Include time package for backoff implementation.
  6. fixed websocket termination

Copy link
Owner

@tiagorlampert tiagorlampert left a comment

Choose a reason for hiding this comment

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

Hi @ITACHI2337

I checked the code and isn't compiling. Can you check?

Looks like the new code are in the wrong file.

Note that the client connection implementation is in the file https://github.com/tiagorlampert/CHAOS/blob/main/client/app/handler/handler.go#L40v

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