Questions tagged [signalr.client]

Async signaling library for .NET applications, as well as WindowsPhone applications, to help build real-time, multi-user interactive web applications.

Async signaling library for .NET applications, as well as WindowsPhone applications, to help build real-time, multi-user interactive web applications.

SignalR.Client lets you communicate with clients on your website, Windows Console Applications, WPF Applications, and WindowsPhones applications in real time through the best continuous connections available between browser, application and server (websockets between Chrome and IIS8, but long polling between IE9 and IIS7.5)

The source is available on GitHub. and documentation here

879 questions
6
votes
1 answer

Problem with invoking method from SignalR Hub. Invoking failed. Promise rejected

I've been hanging on to the problem for over a week now and can't find a way to fix it because I'm pretty new to the .NET and angular environment. Also, I can't find a solution on the internet that fits my problem. I have a service that sends me…
Ronaldo
  • 774
  • 3
  • 8
  • 29
6
votes
1 answer

Async handler in signalr .net core client

The .NET core client for signalr have a HubConnection class that can be used in the following way. HubConnection connection = new HubConnectionBuilder() .WithUrl("https://localhost:44321/hub") .Build(); await…
Heap
  • 2,346
  • 1
  • 19
  • 12
6
votes
1 answer

SignalR with paging using Groups

I am new to SignalR and in the learning process, I am trying to make Stock ticker. I have over 1000 stocks list and want to show paging and update on real-time changes that's why I am using Groups with SignalR. Problem is that when I open page 1…
aadi1295
  • 982
  • 3
  • 19
  • 47
6
votes
2 answers

Does Signalr change connectionId OnReconnected method?

I was wondering if signalr changes the connectionId on OnReconnected method? as I'm mapping a list of users to their connection ids so if the reconneced event raised on the server due to slow connection for example will the connectionId will be…
Abdoo.ay
  • 164
  • 2
  • 10
6
votes
2 answers

SignalR Error During Negotation Request When Testing Against Vagrant VM

I have setup a console application that just runs a loop and emits a message using Signal R. The client that is listening is an angular application. When I run locally, (Both the Console application and the Angular Site) it works fine. However, when…
TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208
6
votes
2 answers

SignalR client doesn't work inside AngularJs controller

I've created Angular application based on routes. Without using the routes, the Signalr works fine, but when I work with routes, the Signalr works just in one way - from client side to server. //Scripts
ToTa
  • 3,304
  • 2
  • 19
  • 39
6
votes
1 answer

WPF SignalR server returns HTTP 400 Bad Request (Invalid host address)

I'm trying to set up a SignalR hub to be able to push notifications to a bunch of WPF clients over the web. I've tried to follow the basic guidelines and tutorials and have created a WPF SignalR Server (for testing purposes only). This has been put…
JaggenSWE
  • 1,950
  • 2
  • 24
  • 41
6
votes
6 answers
6
votes
2 answers

SignalR authentication failed when passing "Bearer" through query string

I'd like to enable authentication in SignalR while the server was hosted in ASP.NET WebAPI which I'm using OAuth Bearer authrntication and the client is AngularJS. On client side I originally pass the Bearer token through HTTP header and it works…
Shaun Xu
  • 4,476
  • 2
  • 27
  • 41
6
votes
1 answer

Why is HTTPContext.Current.Session null using SignalR 2.x libraries in a ASP .Net MVC application?

I'm attempting to migrate our ASP.Net MVC application from using Signal R1.x tgo SignalR 2.x. I just found issue which will certainly cause us problems in our quest to move forward. Our web application is MVC based and makes heavy use of the…
JohnB
  • 3,921
  • 8
  • 49
  • 99
6
votes
2 answers

Detect SignalR Hub Client Disconnect instantly

When is the SignalR Hub OnDisconnected raised on server side, for the the .net client that crash or close without calling the Stop method? I am testing with the SignalR .NET client, not the javascript client. If I call the Stop method on the client,…
John Hpa
  • 463
  • 6
  • 18
6
votes
2 answers

It's possible signalR client web to connect a server on a different PC?

I have a console application who is the signalR server, on my PC. I have a html page who is a signalR client on internet. But i try to connect the server but I have a bad request 400 error. If the server is down i have a another reponse. It's…
Oberon
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

Implementing Authorization in a Self Hosted SignalR Server accessed from Web

I'm looking for some guidance on how to implement authorization security for SignalR on a back end service running in a self-hosted (non-IIS) environment, that is called from a Web application. The backend app is basically a monitor that fires…
Rick Strahl
  • 17,302
  • 14
  • 89
  • 134
6
votes
3 answers

SignalR - how to reconnect client to server (how to restart SignalR)

I have the following problem with SignalR with users accessing my website from a mobile device. The problem is that when the phone locks or the user goes to another app, the Disconnect() method is fired on the server (I try sending a message to the…
Ryan
  • 5,456
  • 25
  • 71
  • 129
5
votes
1 answer

Weird delay receiving a SignalR callback

I'm experiencing a weird issue, where a callback using SignalR sent to multiple clients gets delayed for some of the clients. As you can see there's a full 7 second delay between client A receiving the callback and client B receiving the…
binks
  • 1,001
  • 2
  • 10
  • 26