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

SignalR Websocket Exception when closing client

When starting and stopping a SignalR client that is connected to a basic self hosted server like this: async public void Start(string url) { _connection = new HubConnection(url); _proxy = _connection.CreateHubProxy("hubname"); await…
dsfgsho
  • 2,731
  • 2
  • 22
  • 39
11
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
  • 2,642
  • 3
  • 22
  • 20
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
  • 11,260
  • 40
  • 107
  • 184
10
votes
1 answer

jquery signalr client works- but in java it cannot be made to work

We have a SignalR hub. The following jQuery code connects and properly processes SignalR client "call" events successfully on cordova. var connectionURL = "https://SOMEURL.azurewebsites.net/message"; connection =…
user26676
  • 280
  • 3
  • 21
10
votes
4 answers

SignalR .NET Client - Unexpected character encountered while parsing value

I'm trying to set up a .NET client to send messages to my SignalR hub from my service layer. I'm following this guide: http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-net-client#callserver This is what I have: …
RobVious
  • 12,685
  • 25
  • 99
  • 181
10
votes
1 answer

SignalR .NET client disconnecting

We are coming across an interesting issue. Here is what our setup looks like: SignalR Server (an ASP.NET MVC application) on windows Server 2012. Sencha HTML5 apps (SignalR clients) on the same server (Windows Server 2012). .NET Windows Service on…
smitra
  • 597
  • 3
  • 6
  • 18
9
votes
3 answers

Getting "The certificate authority is invalid or incorrect" when connecting to SignalR (Core) hub in UWP

I'm trying to connect to a SignalR Core hub from my UWP application. In a .NET Core application (2.1) it works perfectly, whereas in UWP it throws an exception when hub.StartAsync() is called. The certificate authority is invalid or incorrect This…
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
9
votes
3 answers

SignalR /negotiate is making requests to /Account/Login - I have no Account/Login endpoint

I'm seeing lots of entries in my logs from this request: /signalr/negotiate The error is: The controller for path '/Account/Login' was not found or does not implement IController I have a JS client connecting to an AppHub that requires…
SB2055
  • 12,272
  • 32
  • 97
  • 202
9
votes
3 answers

SignalR client callback method getting called multiple times

We have a SignalR client call back method, which gets called as many times as we move away from and come back to it's containing page. For example: page is salesUpdate.html (Angular template), on this page when coming for the first time, the call…
viking
  • 411
  • 1
  • 5
  • 14
9
votes
2 answers

SignalR java cannot connect to server

I'm having trouble connecting my java application to my SignalR Server. The server is very simple and can be found here: https://code.msdn.microsoft.com/windowsdesktop/Using-SignalR-in-WinForms-f1ec847b I can connect web clients(javascript) and…
George Vovos
  • 7,563
  • 2
  • 22
  • 45
9
votes
2 answers

SignalR function return value

I created a SignalR hub which contain the following hub function: public bool GetStatus() { return true; } I'm want to call this function from my JS code and get the request of this call. Something like this: var result =…
No1Lives4Ever
  • 6,430
  • 19
  • 77
  • 140
8
votes
1 answer

What Is The Correct Way of Closing / Disconnecting An ASP.NET Core signalR Client Connection?

I am a new user struggling to close a secondary signalR client gracefully from an ASP.NET Core Blazor Server Page. I am setting up a secondary signalR client connection on first render of a Blazor Server Page. I am trying to close this secondary…
8
votes
1 answer

How to write C++ SignalR client to connect a C# SiganlR server

I am aware of communication between a C# server and C# client using SignalR. Along with C# client, I have C++ client apps where I need to communicate with the same C# server that is used to communicate with C# clients. For communication between C#…
Siva
  • 1,281
  • 2
  • 19
  • 41
8
votes
1 answer

Best Practices for reconnecting a disconnected SignalR client (JS)

I'd like to improve the resilience of my clientside implementation of a signalR client. Currently, I do this: hub.server.sendClientNotification(string, appSettings.username()); However occasionally, an exception related to connectivity is thrown…
SB2055
  • 12,272
  • 32
  • 97
  • 202
8
votes
1 answer

different connection in Browser multiple tabs

Why SignalR is making different connection in browser multiple tabs for same logged-in user. Is there any way to make one connection for all tabs opened in same browser. From connection I mean connectionID of a user in SignalR.
Amna
  • 603
  • 7
  • 30
1 2
3
58 59