I have multiple SignalR 'services' running and only one UI to access them.
How can I make the client js to talk to multiple connections with different Url? Because it seems I can only specify one url per $.connection.hub, and I can't use multiple 'signalr/hubs' client scripts.
Any help? Thanks.
$.connection.hub is created in the /signalr/hubs inclusion.
At the end of the file it essentially does:
To create the hub proxy you do:
Simple example for multiple connections:
My solution for such occasions:
It internally stores the promise object from start() and attaches handlers as needed.
Basically you just call SignalRHelpers.SubscribeToConnectionStart every time you need to connect. For example