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

SignalR WebSockets on IIS 7.5

On my IIS 7.5, my SignalR application always used long polling. As per my search, IIS 7.5 does not support WebSockets yet. I hope, I missed some tools or configurations to enable WebSockets in IIS 7.5. Or I didn't?
ZeroHackeR
  • 573
  • 1
  • 5
  • 7
23
votes
3 answers

JQuery 3 and SignalR 2.2.0

I use SignalR 2.2.0 in a MVC5 project. SignalR depends of JQuery in client-side. JQuery recently released new version, I updated it from Nuget, specifically from version 2.2.4 to 3.0.0.1, but then SignalR stopped working. Startup command…
TNT
  • 819
  • 1
  • 8
  • 28
23
votes
2 answers

Using Redis with SignalR

I have an ASP.NET MVC application that runs on server A and some web services that run on server B. I have implemented real-time notifications for which I have used SignalR on server A. But now I need server B to also be able to send messages to a…
labyrinth
  • 1,104
  • 3
  • 11
  • 32
23
votes
3 answers

What is the development status of SignalR 3?

Based on my understanding, the old SignalR repository is dead: there were no commits for a year (ironically, the guys who previously committed to it, now commit to Node,js), dozens of issues without response (we experienced a bug and had to…
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
23
votes
1 answer

SignalR / Websockets connection limitations and best practices

I'm trying to understand how to best design an IIS/ASP.NET based websocket application, specifically regarding concurrency limitations. I've read all the literature on IIS/ASP.NET regarding "concurrent Websocket connections" and how to tweak the…
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
23
votes
4 answers

No access to the Session information through SignalR Hub. Is my design is wrong?

I've just discovered you can't access the current session within the SignalR Hub. Simplified my scenario: I've tried to write a chat. The name of the current user was kept within the Session. I've used SignalR to update (a group of connections)…
Letterman
  • 4,076
  • 5
  • 29
  • 41
23
votes
2 answers

SignalR hub method parameter serialization

I would need some guidelines from SignalR developers what is the best way to tweak HUB method's parameters serialization. I started migrating my project from WCF polling duplex (Silverlight 5 - ASP.NET 4.5) to SignalR (1.1.2). The message (data…
eXavier
  • 4,821
  • 4
  • 35
  • 57
23
votes
9 answers

signalR : /signalr/hubs is not generated

I can get this tutorial to work in a new project, but not in my existing project. My project is an ASP.Net MVC 4 web application with the following attribute in the web.config file:
Sam
  • 13,934
  • 26
  • 108
  • 194
22
votes
4 answers

SignalR + Dependency Injection Questions

I am using SignalR in my MVC3 application, and since I have implemented StructureMap Dependency Injection on my controllers I would like to do the same in my hub, but I can't seem to get it working. Please tell me what's wrong with my codes…
22
votes
2 answers

IE 11 + SignalR not working

Strange behavior is happening when using signalR with IE 11. Scenario: We have some dispatcher type functionality where the dispatcher does some actions, and the other user can see updates live (querying). The parameters that are sent come through…
Jack
  • 9,156
  • 4
  • 50
  • 75
22
votes
1 answer

SignalR with Self-Signed SSL and Self-Host

Tried my luck at research, but so far no joy. I would like to connect a SignalR javascript client to a self-hosted SignalR Windows Service binding to a self-signed SSL certificate. My application works quite well over http, but the client…
ISZ
  • 1,027
  • 2
  • 14
  • 29
22
votes
2 answers

When is the SignalR hub constructor called?

I'm trying to debug a SignalR hub and noticed that the constructor is getting called multiple times, even with a single client. Is this the expected behaviour? I was expecting the constructor to be called only once for class initialisation, but I'm…
Tim
  • 7,746
  • 3
  • 49
  • 83
22
votes
1 answer

SignalR .Net client: How do I send a message to a Group?

I am using the sample Chat application from the SignalR Wiki Getting Started Hubs page. I have extended it to add Group support and it is working fine. However, now I want to send a message to the group from an external Console application. Here…
robrtc
  • 2,747
  • 1
  • 17
  • 22
22
votes
1 answer

How does SignalR.Redis work under the hood?

Other than reading the code in github, is there any white paper type of documentation on how the SignalR.Redis package works? Specifically I am wondering what keys it adds to Redis, update/deletion strategy, etc. When looking inside Redis all I ever…
user1574808
  • 707
  • 1
  • 8
  • 20
22
votes
1 answer

SignalR: How to send data to IConnected.Connect()

I implement the Connect() method on IConnected interface to add new connections to the correct groups. This works well except for one thing: in order to add the user to the correct group, I need to send a value to be read in this method. I tried…
Vidar Langberget
  • 457
  • 1
  • 3
  • 14