signalr_flutter icon indicating copy to clipboard operation
signalr_flutter copied to clipboard

Not supporting MULTIPLE HUBs

Open pravinbhole1 opened this issue 4 years ago • 4 comments

when we are connecting to multiple hubs it is only remembering the recent object initialised . Instead of invoking method of first hub it is checking for the same method on recent hub.

pravinbhole1 avatar Dec 10 '20 10:12 pravinbhole1

Have you tried the pre-release version?

AyonAB avatar Jan 06 '21 13:01 AyonAB

This issue has been addressed in latest pre-release version. Will reopen this issue if problem persists.

AyonAB avatar Jan 19 '21 13:01 AyonAB

hub1 and hub2 are created and the method of hub1 invoked then this issue occurs.... " method could not be resolved. No method found with that name"

if the same hubs are swapped hub2 created first and hub1 after it then the same method works fine

because dependency remembers latest initialized hub only for invoke #17 @AyonAB

pravinbhole1 avatar Jan 20 '21 09:01 pravinbhole1

Ok, I misunderstood your issue previously, Sorry for that.

Currently you can connect to only one Hub. Multiple Hubs not supported yet.

I'll try to solve this issue in the next stable update after 0.1.0.

AyonAB avatar Jan 20 '21 12:01 AyonAB