Reputation: 12352
I have two methods in my hub that should add a connectionId in the same group (among other things).
Is there a problem, adding the same connectionId multiple times to the same group? Will I get multiple events on the browser when calling a client method for this group? Will this slow down the server performance?
I searched about possible causes of doing that but I didn't find anything that could help me.
Upvotes: 5
Views: 2316
Reputation: 8276
For a detailed answer you can browse the code to find out: https://github.com/SignalR/SignalR/tree/master/src/Microsoft.AspNet.SignalR.Core
I tried connecting to the same group multiple times, but whenever the event fires the subscribed client receives it only once, which I think makes sense. So they probably map connectionIDs to group, which means multiple connection makes no change from connecting once
Upvotes: 9