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
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
  • 587
  • 2
  • 6
  • 18
9
votes
3 answers

SignalR + Angular: how to add Bearer token to Http Headers

I made an asp.net core 2.0 SignalR Hub which uses Bearer Token for Authentication. Now I'm a bit lost on how to connect to it via the SignalR Angular 5 client. I actually can connect if I remove authorization from the Hub, so the connection is…
André Luiz
  • 4,670
  • 6
  • 41
  • 76
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
  • 10,654
  • 29
  • 87
  • 185
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,399
  • 2
  • 18
  • 40
9
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
  • 270
  • 2
  • 18
9
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,563
  • 1
  • 19
  • 38
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
  • 4,777
  • 10
  • 49
  • 98
8
votes
1 answer

Does SignalR provide message integrity mechanisms which ensure that no messages are lost during client reconnect

Abstract Hi, I was pondering whether it is possible to loose a message with SignalR. Suppose client disconnects but eventually reconnects in a short amount of time, for example 3 seconds. Will the client get all of the messages that were sent to him…
Lu4
  • 13,853
  • 12
  • 68
  • 122
7
votes
1 answer

Communication between asp.net app and a serviceworker, via signalR?

I'm new to serviceworkers and I wonder how could I connect my serviceworker to my asp.net application. My js client already is communicated with a service worker and it's able to show notifications. However, I've seen that some webs (e.g facebook)…
moarra
  • 417
  • 7
  • 19
7
votes
1 answer

SignalR: no messaging until file uploaded/downloaded at the same web site

I have some problem when proceed downloading or uploading file (WebClient.DownloadFileAsync|UploadFileAsync or by HttpWebRequest) and simultaneously calling SignalR-hub methods: SignalR calls were stopped until file loading finished. It seems like…
Dmitry
  • 71
  • 2
7
votes
2 answers

SignalR disconnect not being called on internet disconnection/re-connection

I am using SignalR in my app.I have an app which depends to a very great degree on OnDisconnected() being called correctly. And it is called correctly under the following circumstances: public Task OnDisconnected() { try { …
user1527989
  • 139
  • 4
  • 14
7
votes
1 answer

Is SignalR Payload agnostic?

Does SignalR support payloads other than those containing JSON or Text like BSON, etc.
sgtz
  • 8,219
  • 8
  • 46
  • 90
6
votes
1 answer

SignalR Core, not getting response from server when client is connected

I am working on a SignalR Clinet-Server connection. My server is WebApi Core 2.1 and my client is WPF .NET Framework 4.7.2. On the client side I have a singleton hub service with one Instance to recive messages from server: using…
michasaucer
  • 2,630
  • 4
  • 21
  • 50
6
votes
1 answer

SignalR client server connected but not pushing data to client on production server

I have developed a web app using SignalR and its working perfectly on my development server. But for some unknown reasons its not working on production server. I have done some tests: $.connection.hub.start().done(function () { …
Waleed
  • 862
  • 12
  • 36
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,286
  • 1
  • 18
  • 11
1 2
3
52 53