legoino icon indicating copy to clipboard operation
legoino copied to clipboard

Callback functions for connection status

Open Mattze0815 opened this issue 3 years ago • 2 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!

Mattze0815 avatar Dec 23 '20 08:12 Mattze0815

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 avatar Dec 23 '20 16:12 fvanroie

@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 😄

corneliusmunz avatar Dec 23 '20 20:12 corneliusmunz