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
25
votes
2 answers

How to use SignalR in Unity3d?

I have a reason to use SignalR in Unity, I have decided to go with Microsoft.AspNetCore.SignalR.Client from NuGet. I've tried a package Nivot.SignalR.Client.Net35 but it uses AspNet.SignalR.Client which is not used anymore, I have created…
Fabian Domurad
  • 273
  • 1
  • 3
  • 8
25
votes
5 answers

Using WebSockets with ASP.NET Web API

What is the preferred method for using raw websockets in an ASP.NET Web API application? We'd like to use binary WebSockets on a couple of our interfaces of our ASP.NET Web API application. I'm having a difficult time determining how this should be…
Tony
  • 1,986
  • 2
  • 25
  • 36
25
votes
2 answers

SignalR - authenticating with access token

I've been building a web service that, up to now, consisted entirely of ASP.NET Web API calls. I now need to add SignalR into the mix but am wondering how I can keep the security aspect consistent. I'm currently using OAuth bearer tokens (with OWIN…
Barguast
  • 5,926
  • 9
  • 43
  • 73
25
votes
7 answers

SignalR support in .NET 4

Does SignalR support .NET 4.0. Or is it support only from .NET 4.5 upwards. Is there any link which provides with minimum requirements for SignalR.
Nipuna
  • 6,846
  • 9
  • 64
  • 87
25
votes
3 answers

What is SignalR's browser compatibility?

The most I've found online is in the SignalR FAQ, where it is stated that SignalR does not work in IE6/7. However, for legal reasons I need to present to customers a list of supported browsers. Is there such a list of tested browsers for…
David Pfeffer
  • 38,869
  • 30
  • 127
  • 202
25
votes
5 answers

How to receive return values from a SignalR message?

I`m calling SignalR from inside a MVC Controller action var context = GlobalHost.ConnectionManager.GetHubContext(); var ret = context.Clients.Client("Whatever").getValue(userId); Is there anyway I can get a response from the getValue()…
Felipe Leusin
  • 19,991
  • 2
  • 26
  • 19
25
votes
3 answers

How do I send messages from server to client using SignalR Hubs

I am just starting to explore signalR and I would like to able to send messages from the server to all clients. Here is my Hub using System; using System.Collections.Generic; using System.Linq; using System.Web; using SignalR; using…
David Kethel
  • 2,440
  • 9
  • 29
  • 49
25
votes
6 answers

SignalR and MVC bundle

I'm trying to use SignalR with MVC bundle, but having problem finding out how to include the /signalr/hubs script into the bundle. For now I have to insert the path in between jquery.signalR and my code. That will result in three javascript file…
thenail
  • 438
  • 1
  • 5
  • 10
25
votes
1 answer

Is SignalR a suitable substitute for jQuery Ajax (or similar)

As per title, would SignalR be a suitable substitute for general Ajax (e.g. jQuery Ajax) updates used in web pages. Thanks
AnonGuy
  • 263
  • 3
  • 6
24
votes
2 answers

@aspnet/signalr vs @microsoft/signalr javascript libraries

What's the difference between @aspnet/signalr vs @microsoft/signalr javascript libraries? Both seem valid for DotNetCore SignalR, both seem active. In some tutorials I find @aspnet/signalr and in DotNet docs they use @microsoft/signalr. It seems a…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
24
votes
3 answers

Steps to get SignalR working in Android Studio

I'm trying to bring SignalR into my Android Studio project. I successfully followed the tutorial on getting started with SignalR, so now I have a working Hub. The client in that tutorial is javascript, and I got it working ok in a web page (in…
toddmo
  • 20,682
  • 14
  • 97
  • 107
24
votes
4 answers

How to implement real time data for a web page

(This is intended as a Q/A style question, intended to be a go-to resource for people that ask similar questions. A lot of people seem to stumble on the best way of doing this because they don't know all the options. Many of the answers will be…
mason
  • 31,774
  • 10
  • 77
  • 121
24
votes
1 answer

How to solve limitations of SignalR in scaleout for backplane

I use ASP.NET MVC and C# .I found SignalR for transfer data in real time,but signalR have some limits. according to the issue for this : Using a backplane, the maximum message throughput is lower than it is when clients talk directly to a single…
Amir Movahedi
  • 1,802
  • 3
  • 29
  • 52
24
votes
3 answers

Is SignalR possible without jQuery?

Can TypeScript only be used to create SignalR web apps, or do we have to use jQuery? Or is there a TypeScript version of SignalR?
uSeRnAmEhAhAhAhAhA
  • 2,527
  • 6
  • 39
  • 64
24
votes
1 answer

How do I get a SignalR hub connection to work cross-domain?

I am trying to get a super simple hub connection working cross-domain but having no luck. I've read dozens of posts and done everything mentioned but still no success. My server hub is here public class ChatHub : Hub { public void Send(string…
Jason
  • 2,455
  • 4
  • 37
  • 48