Last post Oct 19, 2016 04:40 AM by Yohann Lu
Oct 02, 2016 11:14 AM|Jalalx|LINK
Hi every one!
Lets say I have opened same page in multiple browser tabs. How can I call a client side function, for just one of browser tabs? no matter which one, just one of them.
Here is my code, but it calls function in all browser tabs:
var hubContext = GlobalHost.ConnectionManager.GetHubContext<FooHub>();
hubContext.Clients.User('my user id').playNotificationSound();
I'm using SignalR version 2.2 on ASP.NET MVC 188.8.131.52/Windows 10 x64
Oct 03, 2016 05:11 AM|Yohann Lu|LINK
How can I call a client side function, for just one of browser tabs?
You can refer the following solutions.
Cannot have many tabs open with SignalR:
SignalR – handling browser connection limits:
SignalR and Browser Connection limit:
Oct 03, 2016 09:11 AM|Jalalx|LINK
Thank you for reply but none of those links fixed my issue. I'll update this thread if I found a solution.
Oct 19, 2016 04:40 AM|Yohann Lu|LINK
by managing connection only in one tab and allowing communication between tabs.
You may can get inspired by the following tutorial.