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
5
votes
2 answers

client constantly reconnecting

My .net application which connects to signalr hub is constantly reconnecting. This problem only occurs on certain other corporate networks which makes me believe something is being blocked. I've tried to use the jabbr.net website from the same…
4
votes
1 answer

Can you inject signalR in Angular 10+ in a service without calling the methods in the app.component

So I have followed a few tutorials and one of the common themes once you set up your hub in C# is you call a service similar to this: private hubConnection: signalR.HubConnection = new…
djangojazz
  • 14,131
  • 10
  • 56
  • 94
4
votes
1 answer

Ignore Self-Signed certificate when building Url for SignalR javascript client

Is there a way to bypass a self-signed certificate when building the Url on signalR.HubConnectionBuilder() of JavaScript client? I found this can be done and work perfectly in C# client with the following code connection = new…
4
votes
1 answer

.Net Core SignalR server to server reconnect

I am trying to learn more about reconnecting a websocket connection server to server when my web socket service goes down. I have done a good bit of looking around docs and other problems (mostly finding client to server), but can't decide what I…
Shawn
  • 2,355
  • 14
  • 48
  • 98
4
votes
1 answer

Is there a way to implement events in SignalR Core Hub?

In my Asp.Net Core application I receive updates from a .Net Client through SignalR Core. With these updates, I try to know the status of a background service that is running on the .Net client. Some examples: "Timer has been started…
Sam
  • 81
  • 2
  • 12
4
votes
1 answer

What are the proguard rules for SignalR android client?

I have a chat application using SignalR. Recently I have enabled PROGUARD. Gson proguard rules are OK. For debug apk, chat message sending to server OK. Server pushes the message to chat_Receiver but I can see the response only on below "SignalR…
Zia
  • 1,204
  • 1
  • 11
  • 25
4
votes
1 answer

connection.closed is not a function SignalR

I'm confused about the closed event in SignalR. Apparently, there was some debate about what to call it e.g. onClosed(), closed(), etc. In my SignalR listener on the client side, I'm trying to implement this event but I keep getting an error that…
Sam
  • 26,817
  • 58
  • 206
  • 383
4
votes
1 answer

how to integrate signalr in typescript project?

I am using asp.net mvc 4.5 project with typescript in client side. I have installed and configured signalR in the server side. In the client side i have installed signalr.TypeScript.DefinitelyTyped with jquery, i have referred signalr by below in my…
venu
  • 49
  • 1
  • 2
4
votes
1 answer

Authenticate a .NET Core 2.1 SignalR console client to a web app that uses "Identity as UI"

Using .NET Core 2.1 & VS2017 preview 2 I created a simple web server with "Identity as UI" as explained here and then added a SignalR chat following this. In particular I have: app.UseAuthentication(); app.UseSignalR((options) => { …
kofifus
  • 17,260
  • 17
  • 99
  • 173
4
votes
1 answer

How to check success of HubConnection.StartAsync in SignalR for ASP.NET Core 2.0?

Using SignalR for ASP.NET Core 2.0, Client side (1.0.0-alpha2-final), C# VS2017. To connect the code is: await hubConnection.StartAsync(); since this is an await for a void how can we test if the client did manage to connect ? In my tests I have a…
4
votes
0 answers

WebSocketException on SignalR server when HubConnection.Stop() is called from the client

I am creating a web app using ASP.Net that is utilizing SignalR for client communication. Whenever my client side code attempts to Close a HubConnection instance, using either the .Stop() method or wrapping the HubConnection in a using block, the…
Isaac Zais
  • 583
  • 4
  • 13
4
votes
0 answers

SignalR hangs on IIS - when more than 2 Clients

I am facing a strange behaviour of SignalR. When I run my application from Visual Studio 2013 everything works fine and I can connect as many clients as I want (or at least a reasonable number). Now, when I move my app to IIS it works fine as long…
rimes
  • 761
  • 1
  • 8
  • 25
4
votes
1 answer

SignalR handle timeout event on client side

I'm pretty new to SignalR and I have a web-app that communicates with the server using this technology (which is very cool IMHO). What I'd like to know is - is there any way to handle a timeout event using SingalR on the client side? is there a…
LiranBo
  • 2,054
  • 2
  • 23
  • 39
4
votes
0 answers

SignalR keep alive timeout

From SignalR wiki there is this section on Reconnecting Event Reconnecting client event. Raised when (a) the transport API detects that the connection is lost, or (b) the keepalive timeout period has passed since the last message or keepalive ping…
shrivb
  • 1,511
  • 3
  • 15
  • 20
4
votes
3 answers

SignalR Java Client - NegotiationException when starting HubConnection

I am using SignalR Java Client in an Android project to connect to the server (just a console app written in C#) which runs on my localhost. The following is my code on the Android side, inside the onCreate method of the main activity. The…
Ugurcan Yildirim
  • 5,973
  • 3
  • 42
  • 73