Questions tagged [signalr]

ASP.NET SignalR is a library for ASP.NET developers that makes it simple to add real-time functionality to your web applications. That is, to have your server-side code push content to the connected clients as it happens, in real-time.

SignalR is an asynchronous library for .NET to help build real-time, multi-user interactive web applications.

SignalR lets you communicate with clients on your website in real time through the best continuous connections available between browser and server (WebSocket between Chrome and IIS 8, but long polling between Internet Explorer 9 and IIS 7.5).

SignalR allows you to call methods from the server on the client (.NET , JavaScript, Java) and reciprocally. You can invoke methods on every client or a subset of clients.

Extensive documentation and guides are found here.

SignalR can be downloaded through NuGet here.

The source code is available on GitHub.

The JavaScript client package (jQuery plugin)

9391 questions
28
votes
2 answers

How to use SignalR events to keep connection alive in the right way?

I am developing a real-time client-server application using SignalR, ASP.NET and C#. I am using localhost as host and VS2013. My questions are: Why if I close server, on web-client the "Reconnect" event occurs? The "Disconnect" event occurs after…
Dmitry Kazakov
  • 1,639
  • 3
  • 27
  • 47
28
votes
1 answer

How to stop/close SignalR service

I just upgrade from VS2010 express to VS2013 express and open my project. I found the SignalR is running but I don't need it.Firebug is filling with SignalR message.I take long time to search how to stop/close it,but I can't find it.
Timeternity
  • 297
  • 3
  • 10
28
votes
4 answers

Mapping SignalR connections to users

Consider a web application like facebook, that can send realtime notifications to users. What is the best way, using asp.net SignalR, to keep track of which connection ids belong to which user, even if the user disconnects, or reconnects later ?
Daniel Hursan
  • 839
  • 1
  • 9
  • 19
27
votes
4 answers

Securing SignalR Calls

I'm using the SignalR Javascript client and ASP.NET ServiceHost. I need the SignalR hubs and callbacks to only be accessible to logged in users. I also need to be able to get the identity of the currently logged in user from the Hub using the…
reach4thelasers
  • 26,181
  • 22
  • 92
  • 123
27
votes
0 answers

SignalR fails under high load

I have a website with very high load and keeping my test app under a hidden iframe to make sure that the target framework is a good choice for my use case. First tried SignalR test app and then Pokein under same server config. Currently we are using…
Tomm Hill
  • 444
  • 4
  • 9
27
votes
10 answers

Signalr/Hub not loading in IIS 7 but working correctly in Visual Studio

I am working on a Web Application on the Asp .Net 4.0 framework that uses SignalR, having installed it from the Nuget package. When I debug or run the application without debugging locally it works correctly. However, when it is deployed to the…
PCasagrande
  • 5,302
  • 3
  • 27
  • 36
27
votes
3 answers

Can SignalR be used with asp.net WebForms?

I want to use SignalR in my project for real time updates. My project is developed in WebForms. I searched for for 3,4 days but all I found were MVC examples. Can anyone suggest a solution?
Vikas Rana
  • 1,961
  • 2
  • 32
  • 49
27
votes
4 answers

it is possible to stream video with SignalR?

Well I'm trying to perform a proof about video streaming, I'm working with asp.net c#. I'm kind of lost, you have any idea or suggestion?
luis_laurent
  • 784
  • 1
  • 12
  • 32
27
votes
5 answers

SignalR and HttpContext/Session

I understand why SignalR doesn't give you access to the HttpContext. However, this is quite problematic for us. Let me explain: Our application is a Multi-Tenant application where the user chooses the environment while logging in. This basically…
Lodewijk
  • 2,380
  • 4
  • 25
  • 40
26
votes
8 answers

SignalR Negotiate 404

I am using SignalR 2.0. Everything works fine when running locally on my VS 2012. But when I publish the site on IIS, it breaks. The site loads but one of the scripts returns 404 Not Found. The script is something…
user1594757
  • 291
  • 1
  • 3
  • 5
26
votes
2 answers

How to pass complex objects via SignalR?

There is an excellent tutorial on SignalR that explains how to pass .NET objects as parameters to Javascript and vice versa. In that case it passes a ChatMessage object to and from. However, the tutorial addresses a really simple object. I'd like…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
26
votes
3 answers

How to join a group using SignalR

I am new to using SignalR (started today), Pretty simple to send a message to ALL clients connected, but now I want to just send to a group. I cannot find simple documentation on how to join on the client side. If anyone can help, how can I SIMPLY…
user516883
  • 8,868
  • 23
  • 72
  • 114
26
votes
5 answers

What is the best way to load test a SignalR hubs application?

I would like to know some of the different methods that have been used to test a SignalR hubs-based application.
ElHaix
  • 12,846
  • 27
  • 115
  • 203
25
votes
6 answers

How to use cross-domain connections (CORS - Access Control Allow Origin) with SignalR

Using persistent connections and an ASP.NET JavaScript client, I am trying to connect to a sub-domain not the same as the one the page was served from. ASP.Net Page from webserver sub1.mydomain.com wants to connect to SignalR at sub2.mydomain.com.…
codezoo
  • 593
  • 1
  • 6
  • 16
25
votes
6 answers

How can I open a new window without using JS

In blazor i use NavigationManager.NavigateTo(url)in order to change window location, but how can I use it to open a new tab with a specified URL without having to invoke JS on OnAfterRenderAsync()
Flexy
  • 407
  • 1
  • 4
  • 10