Questions tagged [signalr-2]

SignalR 2 is the second major version of the library to add real-time web functionality in ASP.NET. Use with [signalr]. For the ASP.NET Core version, use [asp.net-core-signalr].

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

SignalR 2.0.3 was released in March 2014.

96 questions
89
votes
5 answers

Best practice for reconnecting SignalR 2.0 .NET client to server hub

I'm using SignalR 2.0 with the .NET client in a mobile application which needs to handle various types of disconnects. Sometimes the SignalR client reconnects automatically - and sometimes it has to be reconnected directly by calling…
Ender2050
  • 6,682
  • 11
  • 46
  • 53
16
votes
4 answers

How to hook up SignalR with an Angular 7 application

I simply cannot figure out how to make a signalr connection from Angular. Using the following tutorial at https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc I've added a new…
bob.mazzo
  • 4,419
  • 15
  • 65
  • 135
11
votes
2 answers

SignalR dispose of HubConnection

In a AspNet SignalR client is it the action to dispose of a HubConnection necessary? It seems to take some time, from what I have seen...
cangosta
  • 1,056
  • 1
  • 12
  • 26
9
votes
5 answers

SignalR Websocket Exception when closing client

When starting and stopping a SignalR client that is connected to a basic self hosted server like this: async public void Start(string url) { _connection = new HubConnection(url); _proxy = _connection.CreateHubProxy("hubname"); await…
dsfgsho
  • 2,563
  • 1
  • 19
  • 38
7
votes
3 answers

How to securely send a message to a specific user

I am using ASP.NET MVC 5 and SignalR. I want to send a message to a specific user. I have followed the method which is explained in this tutorial (also suggested by this answer). I have overridden IUserIdProvider, to use UserId as…
Hooman Bahreini
  • 11,018
  • 7
  • 41
  • 74
6
votes
0 answers

SignalR 2 still see connection live even after internet cut out at client side

I configure the server as following on startup.cs GlobalHost.HubPipeline.RequireAuthentication(); // Make long polling connections wait a maximum of 110 seconds for a // response. When that time expires, trigger a timeout command and // make the…
AMH
  • 5,779
  • 27
  • 75
  • 132
5
votes
2 answers

Getting SignalR connection startup error stack

How can I get the full stack of an exception that's happening in an otherwise functioning Web application during SignalR connection setup? Background I'm part of a team maintaining a Web application with C# clients that uses an extremely basic…
Glazius
  • 637
  • 7
  • 24
5
votes
1 answer

Azure SignalR Service Connection is not active

I updated our signalr packages from 2.4.0 and added RunAzureSignalR instead of RunSignalR. Added this code in de Startup.cs app.Map("/signalr", map => { var hubConfiguration = new HubConfiguration { EnableDetailedErrors = true …
Youp Hulsebos
  • 166
  • 1
  • 9
5
votes
1 answer

AspNetCore 2.0 + signalR 1.0.0 alpha2 add pipeline or middleware

In an older version of SignalR and .NetFreamwork i used the class inherit the class HubPipelineModule like : public class IsConnectedPipeLine : HubPipelineModule { protected override bool OnBeforeIncoming(IHubIncomingInvokerContext context) …
5
votes
0 answers

Is there an automatic documentation for SignalR similar to the Web API Help Page?

In an ASP.NET Web API project, we can create Help Page which automatically generates documentation for all of the Web APIs in the project. Can we do the same thing for SignalR?
Tohid
  • 5,185
  • 7
  • 42
  • 75
4
votes
0 answers

Wobbly connection between javascript SignalR client and .net core backend

My JavaScript SignalR client routinely connects to my asp.net core implementation of IdentityServer4. On the client I see: Information: WebSocket connected to…
ScottFoster1000
  • 488
  • 1
  • 6
  • 20
4
votes
1 answer

SignalR 2, Autofac 3.5, MVC 5 and OWIN: How to inject SignalR hub into a controller?

I'm trying to add a notification system to my MVC web app using SignalR. I want to trigger notifications when certain actions occur in the controllers. Getting the SignalR 2 up and running was a doddle thanks to Microsoft's excellent SignalR…
tomRedox
  • 18,963
  • 13
  • 90
  • 126
4
votes
3 answers

when to use multiple hubs in signalR?

am working on chat application, using signal R. I was wondering about when to use multiple hubs in signal r, what are the advantages, to use multiple hubs, or to use single hub is good approach?
bilal
  • 550
  • 7
  • 24
2
votes
0 answers

AWS Lambda (.NET web api ) configured to use SignalR can't connect to an S3 web site

SignalR doesn't work in this case: -.NET core Web API hosted on AWS Lambda that configured with SignalR. -Vue Web site hosted on S3 bucket also configured with SignalR. Both can't connect on AWS, but they work fine locally on my machine. I tried to…
2
votes
0 answers

SignalR Core: Hub Context from Static Controller Method

I'm looking for a way to call a method, from another class in my project, that will then send a message to all clients connected to the mainHub I have a static method where I'm trying to send data to all clients connected to the mainHub which is a…
Brian S
  • 145
  • 7
1
2 3 4 5 6 7