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

SignalR gives 404 when using WebSockets or ServerSentEvents for some users but not for others

SignalR gives me 404 when trying to connect for some users. URLs are the same except for access_token. It is stable reproducible per user (I mean that some users are stable OK, some users are stable 404). access_token parsed jwt diff (left is OK…
A. Yushchenko
  • 105
  • 2
  • 5
3
votes
2 answers

SqlDependency OnChange event not firing for SignalR

I know there are multiple questions on SO with a near identical subject, but unfortunately, after following countless guides and reading several answers, I'm at a loss to answer why this is occurring as a new user to SignalR / SqlDependencies. I…
RazorKillBen
  • 561
  • 2
  • 20
3
votes
2 answers

Azure SignalR Serverless OnConnected-trigger with Azure-functions (Traditional model)

I am using the Azure SignalR Service in combination with Azure Functions and I have the following code: public class SignalRHubFunction { [FunctionName("SignalRConnected")] public async Task Run([SignalRTrigger("myhubname",…
gerb0n
  • 380
  • 1
  • 5
  • 19
3
votes
1 answer

Difference between Fluid-Framework and Signal-R

Question: Microsoft recently released the Fluid-Framework on github, How can/ steps to replace Signal-R with MS Fluid-Framework and what would be the key differences? Use Case: Fluid seems to support collaboration and data sync for Mermaid etc…
Transformer
  • 6,963
  • 2
  • 26
  • 52
3
votes
2 answers

Add startup class in .Net Core Class Library

I am trying to add the OWIN startup class in a new .Net core class library project. I have installed the package Microsoft.AspNetCore.Owin package. But I still don't see the option to create OWIN Startup class in Add New Items wizard. It used to be…
Sachin Parashar
  • 1,067
  • 2
  • 18
  • 28
3
votes
1 answer

How to use different Connection strings for Azure SignalR Service in Function Apps?

Alright, so we have multiple signalR services and what we want to do is when our code is deployed, we want the connection string to be picked from our custom configuration file instead of the function App settings. This is the negotiate function.…
zetawars
  • 1,023
  • 1
  • 12
  • 27
3
votes
1 answer

Connections lost on slot swap

I want to use deployment slots for my Blazor server side application, but it stops working for the current users during the swap and they have to refresh the page. I'm using an Azure SignalR Service for performance reasons, so it kinda makes sense,…
3
votes
0 answers

SignalR: Failed to start the transport 'WebSockets', only on Firefox mobile

I'm making a program with ASP.NET Core with SignalR, and it works fine except in a very specific circumstance, and I can't work out exactly what the cause/fix is: Everything works fine on all browsers (desktop or mobile Chrome/Firefox) when mobile…
Matthew Winfield
  • 827
  • 4
  • 10
  • 25
3
votes
1 answer

SignalR .Net Core 3.1 Web Application not working on local IIS

Trying to create a chat based on an online example using ASP.Net Core 3.1 and Angular. The following works perfectly well on IIS Express, but not on local IIS. Error Message: WebSocketTransport.js:85 WebSocket connection to…
Zion Hai
  • 330
  • 6
  • 18
3
votes
1 answer

Signalr hub does not serialize its method parameter's attributes correctly

I have a signalr hub well configured and communicating well with the client. But my hub method accepts parameters of a specific type, and the class representing this type has Pascal cased properties. As shown below: public List
Damien Doumer
  • 1,991
  • 1
  • 18
  • 33
3
votes
1 answer

SignalR connection to Azure not working (.net core 3.1)

Am trying to connect my App with Azure SignalR, but does not seem to establish connection. It all works fine when I use in my basic config file and run the program locally: services.AddSignalR(); But when I change it to Azure like this (I hardcoded…
Frens
  • 149
  • 4
  • 11
3
votes
1 answer

Flutter AspNet Core SocketException (SocketException: OS Error: Connection timed out, errno = 110, address = 192.168.1.87, port = 46186)

I'm trying to connect using my smartphone (not emulator) to my Aspnet Core with SignalR backend. I added Cors to Startup.cs: public void ConfigureServices(IServiceCollection services) { services.AddCors(options => { …
3
votes
0 answers

Getting Azure SignalR Service is not connected yet, please try again later. in local environment

I've been getting above error since yesterday when I'm debugging my MVC webapp locally via VS 2019. The error comes from the negotiate request which is something like…
Thusitha
  • 165
  • 1
  • 12
3
votes
2 answers

SignalR error Error: Failed to invoke 'Methodname' due to an error on the server

i am getting this error Error: Failed to invoke 'MoveLobbyCard' due to an error on the server. when trying to perform an action in lobby my js code: "use strict"; var connection = new…
Turqay Umudzade
  • 171
  • 2
  • 13
3
votes
1 answer

SignalR connection won't start to IIS-hosted app

I made an application, and am trying to connect to the backend via SignalR. The ASP.NET Core 3.1 backend is hosted in IIS for easy development. Calling the StartAsync method on the client successfully negotiates, but then hangs forever on the…
Squirrelkiller
  • 2,575
  • 1
  • 22
  • 41
1 2 3
99
100