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
1 answer

How can i close circuit beetwen client and server-side in BlazorServer?

I want to close the circuit from the server-side when a user is inactive for a long time. The connection must be terminated to save Azure SignalR resources. I have created a js-script, simple timer that tracked onmousemove and onkeypress events and…
3
votes
0 answers

dotnet core SignalR authentication

I am trying to create an app that provide Api methods and SignalR hub connection to authorized clients using microservices architecture. We are using reference token with Identity Server. Identity Server is another project and runs standalone, so my…
Oratios
  • 109
  • 6
3
votes
2 answers

Azure Front Door with Azure Signal R

Does anyone has any experience with Azure front door used with an app service that uses azure signal r service (managed azure signal r service) Based on my reading so far I understand that AFD doesn’t support web sockets, which looks like if you are…
Supreet
  • 831
  • 1
  • 9
  • 30
3
votes
1 answer

SignalR multi client method call async return - .Net Core 6

I'm trying to use signalR to trigger processes and get return from clients in real-time. My usage cenario consists of 2 client types (Process Manager and Store) and one server(Hub). First client type is the "Process Manager". This client will be…
3
votes
0 answers

Create a correct wav audio format to send to Azure Cognitive Service Speech/Translation SDK width MediaRecorder and SignalR

Instead of directly using the Azure Cognitive Services JS SDK on my web page, I need to send my recorded sound to my server through SignalR to apply some logic and then send the audio to Translation SDK. To stream the audio from the client I'm using…
3
votes
1 answer

How to Self-Host SignalR server in .NET5/6 desktop application?

I' m working on a desktop application with .NET 6 and WinUI3. This application keeps tracking data changes in PLC and transfers real time data to my server and dashboard. My server is cloud based. Using the server as a message hub to transmit the…
hangriver
  • 31
  • 1
3
votes
3 answers

Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Upon running in local my website has the below error. I have checked the DLLs, its the latest 4.2.0. LOG: DisplayName = Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) Calling assembly :…
blash
  • 41
  • 4
3
votes
1 answer

How to handle 401 errors in@microsoft/signalr JavaScript client

We are using the @microsoft/signalr JavaScript client in our Vue frontend to establish a websocket connection with our backend (.net core). Also, we use a Bearer token for authentication. This is the connection builder in the…
3
votes
3 answers

SignalR connection failed when not on localhost

Using Blazor as the client. NET 6 on both client and server. I've already been trying any possible workaround for hours to this and I'm stuck. The clientside and serverside are on the same server (wasm backed) but the thing It doesn't work when it…
3
votes
0 answers

Send An stream to a Group Of Connection/Clients in SignalR

It is simple to send an special message type from server to some group of Clients in SignalR using: Client.Groups("Developers").SendAsync("Notification",new {Message="New Notification Arrived from ...."}); And Also it is not hard to send an stream…
Mehdi Mowlavi
  • 434
  • 1
  • 11
3
votes
0 answers

Catch-all to match all message types in SignalR server

We use SignalR in several applications – it’s very handy and works well! :-) We usually have a C# server side and a JavaScript client. But now we have a “special need”: On the server side, we would like to have one and the same method executed…
UglySwede
  • 429
  • 1
  • 7
  • 16
3
votes
1 answer

Send concurrent SignalR messages with one connection

How can I send multple SignalR messages in parallel with only one connection? I have the following hub method: public async Task Test() { Console.WriteLine($"Start: {DateTime.Now}"); await Task.Run(() => Task.Delay(1000)); …
gartenriese
  • 4,131
  • 6
  • 36
  • 60
3
votes
2 answers

How should I disconnect from signalR when leaving a screen in react-native

In my app I have a few screens that use signalR like that. That function is called useEffect function and it works: const setupSignalR = () => { SecureStore.getItemAsync("token").then(tk => { let connection = new…
user9210692
  • 193
  • 1
  • 10
3
votes
1 answer

Calling SignalR functions outside of Hub Class

I am are trying to get an instance of a Hub Class to call front-end methods from the backend from a class outside of the Hub class. I am using IHostLifeTime that has a register function that will be running in the background while the server is…
3
votes
2 answers

Why is this SignalR messages being received multiple times?

I am using SignalR in a Blazor server-side app. I added the Microsoft.AspNetCore.SignalR.Client Nuget package (v5.0.11) to the project, and used the following code to create the hub connection... HubConnection hubConnection = new…
Avrohom Yisroel
  • 8,555
  • 8
  • 50
  • 106