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
21
votes
3 answers

ASP.NET Core RC2 SignalR Hub Context outside request thread

I am currently trying out the RC2 release of ASP.NET Core and I am running into an issue with SignalR. I need to be able to send messages to the client outside of the request thread. Now in the full .NET framework you can do this like: var context =…
larzz11
  • 1,022
  • 2
  • 11
  • 24
21
votes
4 answers

Asp.net session never expires when using SignalR and transport mode long polling

We have a web application that uses SignalR for its notification mechanism.The problem is when we are browsing our web application using IE ,SignalR uses Long Polling as its transport type thus sends back requests to our web server therefore Session…
Beatles1692
  • 5,214
  • 34
  • 65
21
votes
1 answer

SignalR plus NancyFX : A simple but well worked example

There are a few examples of NancyFX being integrated with SignalR, for example Signalr & Nancyfx integration Since I am just starting out I want a simple, well worked canonical example that I can work from. A nancy version of the chat example from…
biofractal
  • 18,963
  • 12
  • 70
  • 116
21
votes
6 answers

Unittest SignalR Hubs

I Would like to test my Hub in SignalR, what is the best approach? Possible solutions I have thought about so far: Create a testable Hub Abstract logic to separate class Selenium (would like to test smaller units) Or is it some SignalR testing…
user1423412
  • 211
  • 1
  • 2
  • 4
20
votes
1 answer

Differences between AddSignalR and AddSignalRCore extension methods in aspnet core 2.1

I 'm trying to configure SignalR in my aspnet core 2.1 project.In Startup.cs class ,in ConfigureServices() method there are 2 options to use. services.AddSignalR() services.AddSignalRCore() What are the differences between these 2 methods? I was…
dev pishgaman
  • 203
  • 2
  • 4
20
votes
4 answers

Entity Framework "Unexpected Connection State" Exception

After three hours of debugging and searching, I'm hoping someone here has an answer. Entity Framework (using MySQL) throws the following exception if I call the following function quickly in succession (e.g. < 0.1 seconds…
arao6
  • 3,316
  • 5
  • 30
  • 51
20
votes
2 answers

How to Sniff signalR calls using chrome Developer Tools

I download Jabbar chat website and ran it in chrome. I wanted to see what all is happening between browser and server and for that check the network tab. However, I see no entry in network tab (neither xHr not websocket or anything else) but SignalR…
helloworld
  • 2,179
  • 3
  • 24
  • 39
20
votes
2 answers

SignalR difference between On and Subscribe of IHubProxy

What are the differences between On and Subscribe methods available in IHubProxy interface. When should one use one over the other
Nipuna
  • 6,846
  • 9
  • 64
  • 87
20
votes
4 answers

How do I call a SignalR hub method from the outside?

This is my Hub code: public class Pusher : Hub, IPusher { readonly IHubContext _hubContext = GlobalHost.ConnectionManager.GetHubContext(); public virtual Task PushToOtherInGroup(dynamic group, dynamic data) { return…
user1968030
20
votes
2 answers

Using SignalR server from Python code

What are my options for integrating Python with SignalR? The Python code is a part of large 3rd party product, not a matter of language preference. SignalR server provides subscriptions to existing .NET products. We would like to reuse .NET SignalR…
Den
  • 1,827
  • 3
  • 25
  • 46
20
votes
4 answers

SignalR and Browser Connection limit

I made a simple app with SignalR for testing. When the page loads it calls a function on the server, that function then calls a client function that prints a message on the screen. I did that to check that both the client and server function works…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
20
votes
9 answers

SignalR: $.connection is undefined

I'm using Visual Studio 2012 Ultimate RC, SignalR 0.5.1 and Jquery 1.7.2 in an MVC4 application. I have looked at: MVC4 SignalR "signalr/hubs" 501 Not Implemented Error But it does not affect my issue (I am using IIS Express to debug). When I try to…
Bas
  • 26,772
  • 8
  • 53
  • 86
19
votes
4 answers

What is the AWS perfect substitute for Azure SignalR Service?

Recently, I used Azure's "Azure SignalR Service" along with Azure App Service to build a real time chat app. It worked like magic. I loved it! However, I am constrained now to use AWS for my platform and would like an equal substitute service such…
19
votes
5 answers

.Net Core SignalR cannot add or use in startup

Ive recently come back to an old .Net Core application which was using SignalR. I think at the time the only SignalR NuGet package available for .Net Core applications was a preview. And it worked. Im now on a new machine and dont know what the…
JsonStatham
  • 9,770
  • 27
  • 100
  • 181
19
votes
3 answers

What is the Http queue length metric on Azure Web App?

What is the Http queue length metric on Azure Web App ? My Web App is constantly over 150. I'm concerned since the default Alert that can be enabled on the App Service has a default threshold of 100. Could the usage of SignalR affect this metric ?…
Guillaume Morin
  • 3,910
  • 6
  • 25
  • 40