Skip to content

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