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.

94 questions
0
votes
0 answers

How to Open FolderBrowserDialog in SignalR Client Winforms App

I am hosting a SignalR server on ASP.net website and from that, I want to open FolderBrowserDialog in a client WinForms App. Both server and client connect correctly and I even receive the message on client side, but when I try to open…
Hemant Sisodia
  • 488
  • 6
  • 23
0
votes
1 answer

IIS 8 Application pool recycle vs SignalR 2.3.0

I have a website in IIS 8.5.9600.16384, we communicate with thousands of mobile devices through cyclic synchronisation and through SignalR 2.3.0. This morning we had an application pool reset during working hours, which caused the SignalR to call…
Danielle Paquette-Harvey
  • 1,691
  • 1
  • 16
  • 31
0
votes
1 answer

Angular with signalR: Multiple hubconnections to the same route

I have my client code as below. I have a signalr route and hub connection name. I am able to connect to the hub and get events. Now I need to connect to one more hub for the same route to get more events. this.hubConnection =…
indra257
  • 66
  • 3
  • 24
  • 50
0
votes
1 answer

Server function to be ran once for all users

Good evening, In my SignalR application I have a javascript timer that is ran for all users "simultaneously". At the end of this timer, a server function is called, and this is where this problem starts. As the function is called at the end of the…
Tiago
  • 347
  • 1
  • 3
  • 12
0
votes
1 answer

Another "How can you do this without using a Subject" Question for C#

There are lot's of questions here on StackOverflow going back 7 years about using ReactiveX and the do or do not of using Subjects. Most of those questions end up being answered by folks arguing back and forth on philosophical grounds and end up…
0
votes
1 answer

Sharing connections between two SignalR Hubs on different domains

I currently have a live chat website set up that hits a subdomain responsible for handling SignalR interactions: www.domain1.com > chat.domain1.com I'm wanting to introduce a second, duplicate, largely identical site using the same…
ajbeaven
  • 9,265
  • 13
  • 76
  • 121
0
votes
2 answers

Response to preflight request doesn't pass access control check in signalR

The application has been working flawlessly in .net core 2.1. The signalR server's configuration looks like the following code snippet in public void ConfigureServices(IServiceCollection services) method: ``` services.AddCors(setupAction => …
Arash
  • 3,628
  • 5
  • 46
  • 70
0
votes
1 answer

Error @types/signalr/index.d.ts is no ta module

I'm trying to use signalr with Typescript. Server side is ASP.NET (not ASP.NET CORE) I installed both signalR (https://www.npmjs.com/package/signalr) and @types/signalr (https://www.npmjs.com/package/@types/signalr). My import looks like…
Maxim Alexeyev
  • 1,021
  • 11
  • 24
0
votes
1 answer

Signal R $.connection.chatHub is undefined in my javascript file

'.chatHub' is undefined on page load after I moved all signal r code to a bundle that gets loaded on every page I've successfully installed singal r and I can send chat messages from one user to another in my Asp.Net MVC site. But the MS…
chuckd
  • 13,460
  • 29
  • 152
  • 331
0
votes
1 answer

signalr2 asp.net ,vc5 how to set different css styles for messages that sent and received?

I use ASP.NET MVC 5 and SignalR 2 . I have one chat page in one view, and one chat page in another partialview, i have different style for sent message and received message. how to set this styles to messages that sent and received ? all letters in…
s8990
  • 1
  • 8
0
votes
1 answer

SignalR needs to target specific games with Game ID and not all live games

I didnt think about this but this code is sending the game model to all clients. I need to use the GameID from this controller action and only target the clients watching that game. How do I do that? Publish Controller Action public…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

Working with Groups in SignalR core

I create Hub class, when new user connect call function OnConnected: public class ReportChat : Hub { public async Task OnConnected() { string name = Context.User.Identity.Name; await Groups.AddAsync(Context.ConnectionId,…
0
votes
0 answers

SignalR SQL Server Scaleout Users Allocation

I have implemented signalR Scaleout using SQL Server as shown here : https://learn.microsoft.com/en-us/aspnet/signalr/overview/performance/scaleout-with-sql-server So, I have Server 1 and Server 2. What I would like to know, since I haven't been…
0
votes
2 answers

SignalR doesn't deserialize custom object

I'm using SignalR 2.2.2 (Latest release) with .NET 4.5.2 I've this error: Could not create an instance of type DF.ApplicationBlocks.IPropertyValueData. Type is an interface or abstract class and cannot be instantiated. Path 'Properties[0].Id', …
Fabske
  • 2,106
  • 18
  • 33
0
votes
2 answers

SignalR- Jquery : $.connection.chathub returns undefined

I'm creating a chat application using Asp.net MVC, AngularJs, SignalR and Jquery. In the Chat View when I'm trying set the value for chat object it passes null value the code reference is inside the brackets ( var chat=$.connection.chathub;). No…
t4thilina
  • 2,097
  • 3
  • 18
  • 19