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
279
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,791
  • 2
  • 10
  • 3
89
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,682
  • 11
  • 46
  • 53
51
votes
10 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,083
  • 9
  • 36
  • 87
39
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
  • 419
  • 1
  • 4
  • 8
30
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
  • 10,654
  • 29
  • 87
  • 185
25
votes
3 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
  • 744
  • 1
  • 10
  • 30
22
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
  • 1,733
  • 1
  • 15
  • 28
18
votes
2 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…
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
  • 587
  • 2
  • 6
  • 18
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
  • 7,686
  • 27
  • 121
  • 184
17
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,659
  • 3
  • 22
  • 42
17
votes
1 answer

How does SignalR decide which transport method to be used?

SignalR is an abstraction over transports used for real-time connections. Still I'd like to know how exactly it decides which transport methods should be used, depending on various factors. I did some research using available documentation and…
thomaswr
  • 524
  • 1
  • 7
  • 17
17
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,194
  • 7
  • 20
16
votes
2 answers

SignalR "Error during negotiation request"

I have socket notification in my application which work great when I run locally, but when I deploy to my VM, it complains giving the following message. Error: Error during negotiation request. at Object.signalR._.error (jquery.signalR.js:178) …
TheJediCowboy
  • 7,686
  • 27
  • 121
  • 184
15
votes
5 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,398
  • 5
  • 25
  • 48
1
2 3
52 53