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

Sending websocket request to SignalR hub from Postman

I have a SignalR hub setup like this: public sealed class NotificationUserHub : Hub { private ILogger Logger { get; } private IUserConnectionManager UserConnectionManager { get; } public NotificationUserHub(IUserConnectionManager…
Woody1193
  • 7,252
  • 5
  • 40
  • 90
3
votes
0 answers

How to add single row to table in javascript while using Signal R in ASP.Net Core?

I have a model called Server with the attributes ComputerName and Type. All of the servers are listed on a table like this: I want this table to be updated in Real-Time everytime a new server is added. For doing that I'm using Signal R. However…
Sam
  • 247
  • 5
  • 16
3
votes
0 answers

How to connect a react native app to microsoft signalR?

I am running a backend with .net signalR library in order to chat a chap app with realtime features, everything is working properly when it comes to the backend itself and the web frontend but I need to connect a react native mobile app to signalR…
Marlon Englemam
  • 351
  • 5
  • 11
3
votes
0 answers

Azure SingalR Service connection ended without reason on Blazor Server App

We have a Blazor Server App which is connected to the Azure SignalR Service. More or less randomly we get a disconnect and our clients need to reload to establish the connection again. I added logs to the client and server side to find the reason,…
3
votes
0 answers

SignalR usage and potential issues of getting connectionID in the masterpage

Recently, we have introduced SignalR into our project and hoping use its features. Currently SignalR is used only for showing progress bar on a couple of webpages on the client side for long running processes on the server. Could anyone help me with…
3
votes
0 answers

Signalr with redis backplane, sending message to user

I am researching to use signalr to send messages from an api to a specific user (keyword). Locally, I have everything working as designed (even using redis backplane). When I move up to an actual environment with multiple servers (azure app…
Rodney Pannell
  • 330
  • 5
  • 16
3
votes
0 answers

Inject service to configure SignalR backplane

I am trying to use Azure Redis instance as the backplane for my dotnet core signalr application. I need to pull the configuration settings from a database. How do I inject a service to AddStackExchangeRedis()? services …
webdevbing
  • 322
  • 1
  • 3
  • 12
3
votes
0 answers

SignalR server in console host not sending keep-alives

I have an ASP.NET Core application using a SignalR hub. When running via a console application (development mode), no keep-alive requests are sent by the server to the client. Consequently, the connection is re-established every 30 seconds or…
Kent Boogaart
  • 175,602
  • 35
  • 392
  • 393
3
votes
0 answers

Using SignalR in a .Net 5.0 Isolated Process Function

I'm upgrading a .Net core 3.1 azure function which uses a ServiceBusTrigger, to a .Net 5.0 isolated process function. The function uses SignalR to broadcast real-time messages throughout the steps of the process--for example: "Opening file"...…
MGith
  • 53
  • 4
3
votes
1 answer

SignalR hub receives messages, but my client never receives messages sent out

I have a SignalR hub that receives messages from clients that call a custom "login" method. That method adds the connection to a group and then sends a message back to the client. The hub receives the message from the client, but the client never…
Brad Y.
  • 161
  • 2
  • 14
3
votes
0 answers

Host Asp.net Core on linux with Nginx and SignalR

I'm trying to host my asp.net core (.NET 5.0) on linux with nginx. My App contains a SignalR Hub. I Managed to make the hosting work with the default configuration from…
R.Haughton
  • 227
  • 4
  • 16
3
votes
1 answer

Blazor server disconnect when chrome mobile is in background

I developed a blazor server app which works fine on a desktop, and now i test her on the mobile platforms. I met problem with the signalR connection when i put the browser in the background. When i go back, if its enough fast, i have the…
JulienG
  • 158
  • 1
  • 14
3
votes
1 answer

Should I create a new instance of IServiceHubContext each time (with CreateHubContextAsync) or remember and reuse?

I connection to Azure SignalR Service using Managmenet API. I use C# library for that and run this code: var context = await _serviceManager.CreateHubContextAsync(hub); What I failed to figure out is what is the cost of this operation and if there…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
3
votes
1 answer

Blazor Server SignalR hub fails on StartAsync due to Azure ADB2C

I created a Blazor server app in an effort to start learning Blazor and some newer technologies. I followed along with a hub chat tutorial that Microsoft has. Things worked great. I then added some basic cookie authentication and things were still…
Kevin
  • 457
  • 4
  • 12
  • 31
3
votes
0 answers

HttpContext and Response Headers in ASP.NET core SignalR calls?

First of all, I understand that SignalR uses Websockets, LongPoll, SSEs as the underlying protocol. The call initially starts off as a HTTP handshake and eventually upgrades to one of the above three. (Please correct my understanding if this is not…