I have a page with 2 partial views. Each uses a (different) hub. So one uses hub1, the other hub2. This works fine as long as I do $.connection.hub.start() in both partial views. However, this results in two connections being open to the server..
If I don’t do the start() call in one of the partial views I get sync issues and the exceptions that I must call start() first.
Is there some way to achieve this? Is $.connection a singleton and does it have an event i can attach to for when hubs have started?
No it doesn’t have an event. You can always call start in the layout page.