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

Callback functions for connection status #47

Open
Mattze0815 opened this issue Dec 23, 2020 · 2 comments
Open

Callback functions for connection status #47

Mattze0815 opened this issue Dec 23, 2020 · 2 comments

Comments

@Mattze0815
Copy link

Hi @corneliusmunz,
would it be able to introduce some handy callbacks for the following events?

connecting(): hub is connecting

connected(): hub has been connected. Might only be useful if .connect() is converted into a non-blocking function as well.

disconnected(): hub has disconnected

Keep up to good work!

@fvanroie
Copy link

Indeed I think these callbacks will be very handy in a simplified flow. I proposed these as well in another comment proposal for the HubManager feature. This was in relation to Make connection flow easier #38.

I haven't looked at the new HubManager class yet, but I think these callbacks would align with that new feature...

@corneliusmunz
Copy link
Owner

@fvanroie @Mattze0815 I will try to consider this feature request in the work on the HubManager class. Unfortunately i found not so much time till now but during the holidays i will try to tackle this 😄

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

No branches or pull requests

3 participants