Callback functions for connection status
Mattze0815 opened this issue · comments
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!
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...
@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 😄