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

784 questions
14
votes
1 answer

SignalR causing bad request 400 seen on the server

We are having an issue with signalR. We have an auction site that runs on signalr for real time bidding. We fixed some issues with the browser and everything seemed to be working well. Then we installed new relic on our server and noticed that every…
14
votes
4 answers

SignalR Client How to Set user when start connection?

Server side: public override Task OnConnected() { var connectionId = Context.ConnectionId; var user = Context.User.Identity.Name; // Context.User is NULL return base.OnConnected(); } Client side (in Console project): IHubProxy…
wtf512
  • 3,357
  • 8
  • 24
  • 44
14
votes
1 answer

Cross-domain will not work with a SignalR PersistentConnection

NOTE: Someone else originally asked this question but deleted it before I could post my answer. Since this question covers many issues that developers face when trying to make SignalR work cross-domain, I decided to replicate it. Plus, I had already…
halter73
  • 14,442
  • 3
  • 44
  • 54
13
votes
1 answer

Client Lifecycle events in ASP.NET Core SignalR

I'm currently upgrading a project from ASP.NET SignalR 2.2.3 (OWIN) to ASP.NET Core SignalR 1.0.2 (Kestrel). SignalR 2.2.3 supported several client sided lifetime events like reconnecting, connectionSlow, stateChanged, ... . Our javascript client…
Robar
  • 1,779
  • 1
  • 27
  • 57
12
votes
2 answers

SignalR .NET Client connecting to Azure SignalR Service in a Blazor .NET Core 3 application

I'm trying to make a connection between my ASP.NET Core 3.0 Blazor (server-side) application and the Azure SignalR Service. I'll end up injecting my SignalR client (service) in to a few Blazor components so they'll update my UI/DOM in realtime. My…
Jason Shave
  • 1,693
  • 2
  • 16
  • 38
12
votes
1 answer

SignalR & WebApi - colliding Newtonsoft.Json references

I have a windows client that connects to a SignalR 2.0 back-end, now I am trying to make it connect to a ASP.NET Web API 2.1 back-end as well. The library that I use to communicate with the web api relies on Newtonsoft.Json 6.0.0.0 but the…
MatiasK
  • 567
  • 4
  • 17
11
votes
2 answers

SignalR dispose of HubConnection

In a AspNet SignalR client is it the action to dispose of a HubConnection necessary? It seems to take some time, from what I have seen...
cangosta
  • 1,056
  • 1
  • 12
  • 26
11
votes
2 answers

SignalR integration in android studio

I use signalR lib in my project. but I was not able to compile libs of https://github.com/SignalR/java-client on my own - I found them in internet. But it seems like there are not full (WebsocketTransport is missing) When I compile…
Anton Kizema
  • 992
  • 3
  • 11
  • 26
11
votes
5 answers

HttpClientException when connecting to working hub from SignalR .NET Client

I have a working SignalR application that allows me to connect multiple JavaScript clients and exchange data. When I tried to connect with a .NET client I get the following error: An exception of type…
Darren
  • 4,008
  • 3
  • 35
  • 52
11
votes
4 answers

SignalR - Send message OnConnected

I've been experimenting with SignalR today and It's really neat. Basically what I wanted to achieve is the following: As soon as a device connects it should send a message to the first one. If there are more devices than 1 connected I would like to…
Mittchel
  • 1,784
  • 3
  • 16
  • 35
11
votes
3 answers

How to use async/await with hub.On in SignalR client

I have a .Net Windows Service (client) that's communicating with a SignalR Hub (server). Most of the client methods will take time to complete. When receiving a call from the server, how do I (or do I need to) wrap the target method/hub.On to…
Greg Grater
  • 1,891
  • 4
  • 16
  • 23
11
votes
1 answer

SignalR 2.0 .NET console client

I have my server console app: static void Main(string[] args) { string url = "http://localhost:8080"; using (WebApp.Start(url)) { MyHub hub = new MyHub(); Console.WriteLine("Server running on…
Null Reference
  • 10,480
  • 37
  • 100
  • 168
11
votes
3 answers

Using SignalR client through a web proxy

I am using the SignalR .NET client library to create a console app/win service to connect to a signal R Hub using HTTPS on the web. Some of these clients may require a web proxy to access the internet. Where/How do I set the web proxy for the…
user1845354
  • 111
  • 1
  • 4
10
votes
1 answer

SignalR version compatability (StatusCode: 405 'Method Not Allowed')

I'm having issues with a SignalR project I'm currently working on. I'm trying to build a server using .Net Core, and a client using traditional .Net (framework 4.6.1). However the server and client don't seem to be compatible. The last issue I've…
10
votes
1 answer

Use of /signalr/ping call when using long polling

I'm using long polling with SignalR. I've found that user session ends (ASP.NET Session_End is being called) right after singalr based webpage makes /signar/ping request (as shown in this screenshot). I went through…
Raj
  • 1,988
  • 2
  • 17
  • 20
1
2
3
52 53