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

Reconnection , auto channel Subscribe and proper logging #1

Open
sacOO7 opened this issue Dec 18, 2017 · 4 comments
Open

Reconnection , auto channel Subscribe and proper logging #1

sacOO7 opened this issue Dec 18, 2017 · 4 comments
Assignees

Comments

@sacOO7
Copy link
Owner

sacOO7 commented Dec 18, 2017

Need to implement reconnection and auto channel subscribe for the client.
Implement proper logging using https://github.com/sirupsen/logrus

@sacOO7 sacOO7 self-assigned this Jan 13, 2018
@sacOO7 sacOO7 changed the title Reconnection and auto channel Subscribe Reconnection , auto channel Subscribe and proper logging Jul 17, 2018
@evnix
Copy link

evnix commented Jul 14, 2019

was this ever implemented? At the moment it is useless for any long running go programs without auto reconnection when internet is lost

@evnix
Copy link

evnix commented Jul 14, 2019

some example to copy from here: https://github.com/Freeaqingme/go-socketcluster-client

@stevenaldinger
Copy link

stevenaldinger commented Mar 8, 2021

I need auto-reconnecting too, do you have any tips on how to hack that into this client @sacOO7 or does it absolutely need to be handled in the https://github.com/sacOO7/GoWebsocket dependency?

edit for anyone who has this issue. if you run client.Connect() in onDisconnect handler it seems to work well enough:

func onDisconnect(client scclient.Client, err error) {
	fmt.Printf("Error: %s\n", err.Error())
	client.Connect()
}

@sacOO7
Copy link
Owner Author

sacOO7 commented Mar 8, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants