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
280
votes
4 answers

.net localhost website consistently making get arterySignalR/poll?transport=longPolling&connectionToken= calls

I created a new VS 2013 project and viewed the default.aspx page with the Firefox browser. When I check the net calls it has made, I see it making constant calls…
user2981059
  • 2,801
  • 2
  • 12
  • 3
93
votes
5 answers

Best practice for reconnecting SignalR 2.0 .NET client to server hub

I'm using SignalR 2.0 with the .NET client in a mobile application which needs to handle various types of disconnects. Sometimes the SignalR client reconnects automatically - and sometimes it has to be reconnected directly by calling…
Ender2050
  • 6,912
  • 12
  • 51
  • 55
57
votes
11 answers

SignalR cannot read property client of undefined

I'm trying to add SignalR to my project (ASPNET MVC 4). But I can't make it work. In the below image you can see the error I'm receiving. I've read a lot of stackoverflow posts but none of them is resolving my issue. This is what I did so far: 1)…
polonskyg
  • 4,269
  • 9
  • 41
  • 93
40
votes
6 answers

Passing token through http Headers SignalR

I can see that there is an option in HubConnection to pass parameters through url request from client. Is there any way to pass specific token through http headers from JS or .NET clients?
Eduard Truuvaart
  • 429
  • 1
  • 4
  • 8
34
votes
3 answers

Is it possible to call a SignalR Hub from Postman

I have an ASP .Net Core 2.2 Web API with a SignalR hub. Is it possible to call one of its methods (for example, SendMessageToAll) using Postman? The problem is that I only have the API - no frontend - and I need to test. I tried putting the URl to…
31
votes
1 answer

SignalR OnDisconnected - a reliable way to handle "User is Online" for chatroom?

I'm implementing a chat room. So far, so good - users can send messages from their browsers via a JS client, and I can use a C# client to do the same thing - these messages get broadcast to other users. Now, I'm trying to implement "online…
SB2055
  • 12,272
  • 32
  • 97
  • 202
27
votes
4 answers

it is possible to stream video with SignalR?

Well I'm trying to perform a proof about video streaming, I'm working with asp.net c#. I'm kind of lost, you have any idea or suggestion?
luis_laurent
  • 784
  • 1
  • 12
  • 32
24
votes
3 answers

SignalR authentication with webAPI Bearer Token

+i used this solution to implement Token Based Authentication using ASP.NET Web API 2, Owin, and Identity...which worked out excellently well. i used this other solution and this to implement signalR hubs authorization and authentication by passing…
McKabue
  • 2,076
  • 1
  • 19
  • 34
20
votes
2 answers

Using SignalR server from Python code

What are my options for integrating Python with SignalR? The Python code is a part of large 3rd party product, not a matter of language preference. SignalR server provides subscriptions to existing .NET products. We would like to reuse .NET SignalR…
Den
  • 1,827
  • 3
  • 25
  • 46
18
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,929
  • 2
  • 30
  • 61
18
votes
5 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
  • 4,487
  • 9
  • 33
  • 55
18
votes
4 answers

How to send big data via SignalR in .NET client

We have a .NET client, which use SignalR to call Server method, but the parameter seems very big, for such scenario how to fix it? Client code: public async Task FooAsync() { var hubConnection = new HubConnection(...); await…
Jerry Bian
  • 3,998
  • 6
  • 29
  • 54
18
votes
3 answers

SignalR Timeout Properties

We have come across this link which specifies the different time out properties: https://github.com/SignalR/SignalR/wiki/Configuring-SignalR And also this excellent post (When does a reconnect in signalR occour?) on how disconnections and…
smitra
  • 597
  • 3
  • 6
  • 18
18
votes
2 answers

SignalR: Hub OnConnected not called if no client methods

I am writing a game in SignalR. The idea is that you connect with your laptop, which will be used as "display" and then you connect with your smart phone and that will be used as "joystick". The entire setup works very well. Now that it all works, I…
pardahlman
  • 1,394
  • 10
  • 22
17
votes
2 answers

SignalR Client Method Fired Multiple Times in Angular Service

I am having a really frustrating issue that I can't seem to get to the bottom of. I am using SignalR to push messages to a mobile device and the client method is being fired multiple times. The amount of times it fires grows when I log out which is…
TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208
1
2 3
58 59