Last post Jan 16, 2015 11:43 AM by progi
Jan 11, 2015 12:23 PM|progi|LINK
I have written an Application where I use SignalR. Everything works perfect, in the case I open only one browser. In the case I open a second instance of the same browser the connection will not established corret. I have no error message in browser output
but something does not connect correct.
But if I use 1 instance chrome and 1 instance firefox I have no problem. Only in the case I use two instances of same browser type.
Jan 11, 2015 11:57 PM|mike4u|LINK
You can stop the page functionality when user opened another tab or another window or even another browser
// code to stop functioning or close the page
Jan 12, 2015 12:28 AM|progi|LINK
This not a solution. I need to work with multiple browsers paralell.
Jan 12, 2015 12:37 AM|mike4u|LINK
check this link
Jan 12, 2015 06:18 AM|Zhi Lv - MSFT|LINK
From your description, if you want to open two more browser instances using same browser. You need to copy the URL from the address line of the browser and use it to open two more browser instances. In each browser instance, enter a unique user name.
Here is a sample screen shot, you could refer to it.
For more details, please refer to this article.
#Run the Sample
Jan 15, 2015 01:44 AM|progi|LINK
Thanks for your answer. Thats clear. I wrote an application to control the states of a machine. Until now I tested only with on browser. But now, if I open a second browser instance the signalR part isn't running any more until I close one browser window.
I do not have this problem, in the case I open CHROME on instance normal and one instance in private mode. This problem is only in the case I open two times with exact same browser type.
Jan 15, 2015 02:50 AM|Zhi Lv - MSFT|LINK
This problem is only in the case I open two times with exact same browser type.
As indicated in my previous reply, I create a sample and use the same browser (IE). It works well on my machine.
If we want to open two more browser instances using same browser. We need to copy the URL from the address line of the browser, then
open a new browser window and use the URL to open two more browser instances.
Jan 16, 2015 11:43 AM|progi|LINK
The problem was, that I have multiple hubs (3 at same time on one page), where I didn't share the connection. But my chrome limits the maximum number of parallel connection to 5. So the second one didn't work.
This is also described inside the following link:
(By the way I use signalR hub proxy from
https://github.com/JustMaier/angular-signalr-hub there you have the possibility to set the "shareConnection" to true. With setting of this flag I can open paralell 5 instances. An enough for my application.