signalr.client

Cannot find the object “QueryNotificationErrorsQueue” because it does not exist or you do not have permissions

こ雲淡風輕ζ 提交于 2019-11-28 01:43:26
I am using SqlDependecy with signalR to push notifications to client browser when there is some database changes, I followed this and this post and everything works fine in local SqlExpress version 11.0 with Local Connection String , but i have some kind of permissions problem when i connect to remote database hosted in GoDaddy with Production Connection String Working Local ConnectionString <!--<add name="NotifyConnection" providerName="System.Data.SqlClient" connectionString= "Data Source=.\SQLExpress;Initial Catalog=TestDB;Integrated Security=SSPI;" />--> Production ConnectionString <add

Cross-domain will not work with a SignalR PersistentConnection

↘锁芯ラ 提交于 2019-11-27 21:41:44
问题 NOTE : Someone else originally asked this question but deleted it before I could post my answer. Since this question covers many issues that developers face when trying to make SignalR work cross-domain, I decided to replicate it. Plus, I had already finished writing the answer! I'm running a SignalR 1.0.1 server in an ASP.NET MVC .NET Framework 4 project. I have another ASP.NET application on a different domain (different localhost port) trying to connect via the JavaScript client. I get

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

那年仲夏 提交于 2019-11-27 20:01:57
问题 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 users". My approach is the following: OnConnected - update the User in the db to be IsOnline = true OnDisconnected - if the User doesn't have any other connections, update the user in the db to be IsOnline = false I'm storing state in the DB because I have

Passing token through http Headers SignalR

巧了我就是萌 提交于 2019-11-27 18:20:56
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? There is no easy way to set HTTP headers for SignalR requests using the JS or .NET client, but you can add parameters to the query string that will be sent as part of each SignalR request: JS Client $.connection.hub.qs = { "token" : tokenValue }; $.connection.hub.start().done(function() { /* ... */ }); .NET Client var connection = new HubConnection("http://foo/", new Dictionary<string, string> { { "token",

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

时光毁灭记忆、已成空白 提交于 2019-11-27 16:48:38
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 to: http://localhost:50682/6a663a78019845d5ade4a328cad09cc2/arterySignalR/poll?transport=longPolling&connectionToken=AQAAANCMnd8BFdERjHoAwE%2FCl%2BsBAAAAOBmDwPWa2ky2MAZXFHBMVAAAAAACAAAAAAAQZgAAAAEAACAAAADSADQXBVKiKczflJ0OzUjOLduFTJE4zd%2FLHWGpDfXnuAAAAAAOgAAAAAIAACAAAACyEX81VwilygfphPoEKCYQ6ZwrkzExoKfZzEMkqBKqqzAAAADG%2BDJbrEFOfsNm9OKhqacnGseQvrwy5kmyZnI5YJiZbjYFgzMELXHfwA7Sxjj4osJAAAAAvQvoG4N0nn8eB9FRaJaZyqaUDF%2F9ypvGN%2B

SignalR cannot read property client of undefined

不打扰是莪最后的温柔 提交于 2019-11-27 10:42:17
问题 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) Ran Install-Package Microsoft.AspNet.SignalR -Pre 2) Added RouteTable.Routes.MapHubs(); in Global.asax.cs Application_Start() 3) If I go to http://localhost:9096/Gdp.IServer.Web/signalr/hubs I can see the file content 4) Added <modules

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

前提是你 提交于 2019-11-27 04:58:16
问题 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 HubConnection.Start() again. Since SignalR magically auto-reconnects some of the time, I'm wondering if I'm missing a feature or config setting? What's the best way to set up a client that reconnects automatically? I've seen javascript examples that handle the

SignalR version compatability (StatusCode: 405 'Method Not Allowed')

时光毁灭记忆、已成空白 提交于 2019-11-27 04:51:26
问题 I'm having issues with a SignalR project I'm currently working on. I'm trying to build a server using .Net Core, and a client using traditional .Net (framework 4.6.1). However the server and client don't seem to be compatible. The last issue I've run into is a StatusCode: 405, ReasonPhrase: 'Method Not Allowed'. I found an answer on GitHub that states that there are many breaking changes between versions. Looking at the NuGet package versions available, I get even more confused. for the .Net

Passing token through http Headers SignalR

对着背影说爱祢 提交于 2019-11-26 19:23:54
问题 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? 回答1: There is no easy way to set HTTP headers for SignalR requests using the JS or .NET client, but you can add parameters to the query string that will be sent as part of each SignalR request: JS Client $.connection.hub.qs = { "token" : tokenValue }; $.connection.hub.start().done(function() { /* ... */ });

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

陌路散爱 提交于 2019-11-26 18:46:25
问题 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 to: http://localhost:50682/6a663a78019845d5ade4a328cad09cc2/arterySignalR/poll?transport=longPolling&connectionToken=AQAAANCMnd8BFdERjHoAwE%2FCl%2BsBAAAAOBmDwPWa2ky2MAZXFHBMVAAAAAACAAAAAAAQZgAAAAEAACAAAADSADQXBVKiKczflJ0OzUjOLduFTJE4zd%2FLHWGpDfXnuAAAAAAOgAAAAAIAACAAAACyEX81VwilygfphPoEKCYQ6ZwrkzExoKfZzEMkqBKqqzAAAADG