signalr

SignalR Hub's Groups dont work with long polling

杀马特。学长 韩版系。学妹 提交于 2019-12-11 13:32:59
问题 I have a Web App(.NET 4.0 ASP.NET MVC3) which uses SignalR(1.0.0 alpha 2) with Hubs and Persistent Connections. With the Hubs I use groups to send push notifications to some clients. The problem is that when the server is accessed remotely it defaults to long pooling and only the persistent connections work. With hubs the event happens on the server but my callback is not called at the client. It works locally, though it uses SSE. What I found is that the combination of Grouping the clients

SignalR not works on Google Chrome

人盡茶涼 提交于 2019-12-11 13:25:56
问题 I have updated the signal R version from 1.1.3 to 2.1.2 in my project, but after updating it i found that implemented all functionality working proper on Firefox & Internet Explorer but not on Google Chrome. I'm already used long-polling & related solution but then also its not working, Actually Google Chrome is able to sends the update Signal's but not able to receive any signals from another browser. 回答1: After updating Google Chrome with version 41.0.2266.2 canary, it's working properly.

Jquery script conflict with SignalR

半腔热情 提交于 2019-12-11 12:49:18
问题 I am running into an issue that seems like it should be relatively simple to solve but so far the answer has eluded me. I am using SignalR to return a new partial view to the main page. The client function which updates the div tag with a new partial view is called when my database is updated with new information. So far so good. Now I want to add more JQuery code to hide/show child rows in my tables which appear in the partial view. The problem is so far I can only get one or the other

Add SignalR persistent connection at runtime (self host)

给你一囗甜甜゛ 提交于 2019-12-11 12:36:24
问题 I'm trying to add a path for a persistent connection at runtime. I found an example using SignalR.Hosting.Self, Version=0.5.1.10822, which has the Server class. Using that class, it is possible to do this: server.MapConnection<PathOneConnection>("/Path1/"); server.Start(); server.MapConnection<PathTwoConnection>("/Path2/"); Which worked, so I began hopefully creating my solution - starting out by getting the nuget packages.... However the newer version of SignalR uses an IAppBuilder public

How can we implement SignalR in Ionic App?

独自空忆成欢 提交于 2019-12-11 12:12:13
问题 I have made an app that sents messages to the users who have registered with the app(Ionic/Angular). It is getting all messages from database (SQL Server/C# API) and printing out on the message box which is good but when we are sending message to someone whom we are talking, the person is not getting message without refreshing page. For that purpose I have to use SignalR, so I need to know something in this regard that How can I implement SIgnalR with my project? I have gone through so many

SignalR 2 - Pending AJX requests after opening multiple tabs

我的未来我决定 提交于 2019-12-11 12:08:20
问题 I'm using SignalR 2 and I'm having problems when I open multiple tabs of the same page. After opening 4 or 5 tabs, all the requests get in pending status, like if I had exceeded the maximum allowed by the browser. If I close a few tabs, everything works again. Even with all the tabs opened, if I open a different browser it works. This happens both in Chrome and Firefox. If I disable SignalR, I can open as many tabs as I want. This is my code: // Reference the auto-generated proxy for the hub.

C++ Wait But Allow Events To Fire

蹲街弑〆低调 提交于 2019-12-11 12:02:29
问题 Building a SignalR C++ client using Visual Studio 2013, I am starting with the working sample code from NuGet Package Microsoft.AspNet.SignalR.Client.Cpp.v120.WinDesktop , source here Reviewing the library source it seems to me the event handling processes are based on the Concurrency Runtime (pplx::task) which relies on C++11 features void chat(const utility::string_t& name) { signalr::hub_connection connection{ U("https://testsite") }; auto proxy = connection.create_hub_proxy(U("ChatHub"));

make push notification service with signalr

心不动则不痛 提交于 2019-12-11 11:58:37
问题 Hi can I make push notification service with signalR? for example when user start the app,app can recive message and if app closed again app can recive messgae from servers or clients 回答1: Until you can send the message to clients that user is online. And with the closure of the app, Disconnect Communication server with the client. And the ability to send any message disappears. If you want to send notification after app closed, It is better to use the google service . (e.g: Firebase Cloud

SignalR .Net client fails to connect (upd: how to set auth. cookie?)

孤街醉人 提交于 2019-12-11 11:43:17
问题 This thing is dragging me nuts. I have a .net 4.0 console app and I have an MVC web app. javascript clients can connect and talk to the server - no problems here... but my .net client throws System.AggregateException with InnerException = "Unexpected character encountered while parsing value: <. Path... so I created an empty MVC3 app, added SignalR libraries, and .net client surprisingly connects to that. But for some reason it doesn't to the other one. I've checked everything, both MVC3 apps

SqlDependency doesn't fire on row insertion (or update, or delete)

老子叫甜甜 提交于 2019-12-11 11:36:25
问题 After bashing my head against a wall for the next few hours I've slowly started to realise where my problem lays, so let me give you a recap: I'm trying to change a website's string when a row gets inserted into a database, but for some reason the trigger I've made that tells me when there's been a change into the database doesn't fire at all when an insertion, udpate or whatever happens. The table's Service Broker is on. This is the involved code: namespace WebApplication.SignalR_Data {