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

ASP.NET CORE [Razor Pages] real time webAPP with SignalR and Typescript

i am working with SignalR and real time web development atm. I am little confused because of JavaScript and TypeScript. There are two scenarios i am working on: First scenario with TypeScript: ./clients/index.html looks like this:
user9887190
3
votes
0 answers

Blazor Server SPA is returning 'Soft 404' error while accessing an URL/page directly from SEO crawler

Problem: Blazor Server SPA is returning 'Soft 404' error while accessing an internal URL/page directly from SEO crawler. If we access the same from Browser, it returns expected page content and not getting any error. Please help resolve this 'soft…
3
votes
1 answer

How many Azure SignalR Resources do I need?

We are going to implement a chat feature within our application using Azure SignalR Service. This will be our first attempt at using SignalR. We have also identified other areas of our application that can make use of SignalR, but those areas are…
Jared
  • 175
  • 1
  • 13
3
votes
0 answers

How to listen to all notifications sended using Signal R and Android

I'm trying to send a notification using SignalR with android and I was able to only send from the android app to the Server but not to receive the same data that was sent. I'm using .NET6. This is how I'm trying to implement this. Program Class…
Nathiel Paulino
  • 534
  • 6
  • 17
3
votes
0 answers

C# SignalR Duplicate Hub names

I've got exactly the same as the question: Signalr - Duplicate Hub Names But this doesn't have any precise answer. What is the possible cause of this issue? I'm sure that I've created the connection once from the client. But when the…
Jem
  • 35
  • 5
3
votes
2 answers

SignalR connection issue - The connection listener failed to accept any new connections

I have a Game Server using an ASPNet Core SignalR hub (GameServer), and a client using the ASPNet Core SignalR Client library (GameClient). I have successfully managed to create a connection between the two and pass some messages around. There is…
user104
  • 113
  • 1
  • 11
3
votes
1 answer

.NET 6 with React won't connect to SignalR

I want to migrate my .NET Core 5 React project to .NET 6, but I'm facing some issues with SignalR. I've followed the article step by step from this Microsoft Docs to implement SignalR with .NET 6. And still I'm getting the same error as shown here:…
3
votes
2 answers

Blazor server showing 'Invocation canceled due to the underlying connection being closed'

We have a Blazor server side webapp with signalr hosted on IIS. We added EventListener for Blazor.start() with reconnectionHandler and reconnectionOptions. When opening the site as part of previous tabs or turning on after a long sleep, the website…
3
votes
0 answers

Kubernetes - SignalR Behind Ingress Connection Disconnected With 1006

i have a simple signalr application running on Kubernetes/Docker Container. Which is really a Ping/Pong at this point. When i have it on local Docker it works perfectly. But when i publish it via Jenkins to a Kubernetes cluster, it connects,…
Orhan Kalayci
  • 73
  • 1
  • 9
3
votes
2 answers

Inject signalr hub only by interface

So recently I started a project with Ardalis Clean Architecture as template it was all nice but when signalR came into my project i can't figure it. I'm trying to inject interface that my hub implements and call it's method, but everytime when it's…
ISmellYu
  • 89
  • 1
  • 7
3
votes
1 answer

signalR connection id required in asp.net core

I had a project with Asp.net core and I completed it Now I want to add SignalR to it i try add signalR to my asp.net core project but i have an error it is "connection id required" i feel my error is in startup file My Hub class and My Controller is…
3
votes
0 answers

C# reverse proxy via websocket / SignalR

I have one public facing ASPNETCORE server. Then I have multiple small blazor-server applications running on multiple machines in customers infrastructure (behind firewall etc). It must be possible, but how difficult or easy would it be to setup a…
jsandv
  • 276
  • 4
  • 20
3
votes
1 answer

Filtering SignalR ping messages

In my ASP.NET SignalR (.NET 7 WebApplication with Serilog), logs keep filling up with: [INF] Request starting HTTP/1.1 POST http://127.0.0.1:5000/hubs/agentshub?id=su3OANTvP1YtU2i90eK1rA - 11 [INF] Request finished HTTP/1.1 POST…
3
votes
0 answers

File download issue with Blazor server and Brave

When I try to create and download a file from memory with Blazor server it works without issue in both Edge and Chrome. But if I try the same thing in Brave I´m getting this: Error: Connection disconnected with error 'Error: WebSocket closed with…
noel
  • 531
  • 2
  • 7
3
votes
0 answers

SignalR JWT Authorization .NET Framework

I'm trying to authorize via JWT to Signalr through WebSockets with JWT access token. But I get Unauthorize response. This is my signalR configuration in Startup class: app.Map("/signalr", map => { map.UseCors(CorsOptions.AllowAll); …
Juan Acq
  • 31
  • 4