signalr

Signalr always falls to long polling in the production server

柔情痞子 提交于 2020-01-04 18:16:42
问题 When i host the application in the server it checks for the server side events and falls back to long polling always. The server hosting environment is Windows Server 2012 R1 and IIS 7.5 Is there anyway if we can solve this issue? https://cloud.githubusercontent.com/assets/9750273/5050991/2f4cb262-6c59-11e4-9e35-db06b432d470.png IE10, Chrome 38.0.2125.111 and Firefox.. In all the 3 browsers i am getting long polling, server sent events is cancelled. As i understand few of them had told if the

SignalR and IIS recycle

限于喜欢 提交于 2020-01-04 05:31:09
问题 i want to create a server that send notifications to client using SignalR - using groups suppose that my site was recycled - what will happen to the groups as they are not persist 回答1: You would need to persist your groups in external permanent storage. Look for more details here: http://www.asp.net/signalr/overview/hubs-api/working-with-groups 来源: https://stackoverflow.com/questions/18111304/signalr-and-iis-recycle

SignalR Unexpected character encountered while parsing value: <

末鹿安然 提交于 2020-01-04 04:38:05
问题 I am using a WinRT client. I receive this exception when I try to send a message. Unexpected character encountered while parsing value: <. The problem occurs when you send an object to the hub, and the object is not defined on the hub. The object is a Bindable object (ViewModel). I don't want to include all the property notify change stuff on the web project. Client Code return Proxy.Invoke("PlayerUpdate", sessionData); Try one was to have the hub accept an 'object' parameter public async

SignalR is not loaded. Please ensure jquery.sigalR-x.js is referenced before ~/signalr/js

ⅰ亾dé卋堺 提交于 2020-01-04 04:18:09
问题 I have referenced below two libraries dynamically in my page. When I browse my application below mentioned error did not come in Chrome browser. But in Internet Explorer the error occurs. var signalRLibrary = document.createElement('script'); signalRLibrary.type = "text/javascript"; signalRLibrary.src = 'jquery.signalR-2.1.2.min.js'; document.getElementsByTagName('head')[0].appendChild(signalRLibrary); var signlaRHub = document.createElement('script'); signlaRHub.type = "text/javascript";

Why are messages pushed from an MVC app with SignalR not getting through to the client?

喜欢而已 提交于 2020-01-04 02:41:17
问题 I have a simple SignalR hub application, using MVC4/C# on the server end, hosted in an Azure Web Role (single instance, in the emulator, with an http input endpoint), and TypeScript compiled to JS on the client. I have a gallery of images that a number of clients may upload to, and when somebody uploads then I want any other connected clients to receive a message telling them this has happened and giving them the chance to refresh, similar to the way you are notified about a new answer to a

Signalr - Override method for sending messages

痞子三分冷 提交于 2020-01-04 01:28:32
问题 I have an implementation of the PersistentConnection class in Signalr. For our site, I need to be able to broadcast a message, and then have each connection determine whether that particular message is relevant for that specific user before sending it down the pipe to the browser. Something like this: public class MyConnection : PersistentConnection { private int _UserID; public override void OnSending(object message) { var msg = message as MyNotification; if(msg != null && !msg.CanRead(

Unable to receive data from SignalR Server in iOS

随声附和 提交于 2020-01-03 19:03:09
问题 Hi I am new to SignalR Integration. SignalR connection is starting successfully, But some times I'm able to recieve data while some times I'm not able to receive data from server (connection.received method is not getting called). Please check the code below what i used and give ur suggestions. SRHubConnection *connection = [SRHubConnection connectionWithURL:@"http://strandd-dev.azure-mobile.net/signalr"]; //connection.delegate = self; [connection addValue:token forHTTPHeaderField:@"X-ZUMO

Session timeout when using signalr

蹲街弑〆低调 提交于 2020-01-03 17:32:14
问题 I have a web app that is used mainly for monitoring a system. It uses signalr to "server-push" updates from the server to refresh the display. The page also has some buttons which also uses the same signalr connection to send data to the server. The problem is signalr uses a separate connection so the session expires after the session timeout even when it is regularly sending and receiving data from the server. Is this the "correct" way to use signalr? Or should I just use signalr to inform

System.Net.Http.HttpRequestException was caught + when I try to make a SignalR hubConnection

只愿长相守 提交于 2020-01-03 13:00:42
问题 Please help me I keep getting a System.Net.Http.HttpRequestException when I try to make a hubConnection. I have gone through many tutorials and downloaded example codes and nothing seems to work. I have also tried searching online for ways to configure my computer but it gets rather confusing too quickly. Any suggestion will be welcome. InnerException : No connection could be made because the target machine actively refused it Note: on localhost every thing is work fine My asp.net c# server

SignalR .NET Client: Cannot Start Connection From Within Web Application App Domain

痴心易碎 提交于 2020-01-03 08:54:10
问题 I'll try to make a long story short: I want to call a method on a hub in a web application from a core assembly in my application. Reason being is that I have a number of applications that all eventually call into core and trigger events (think mobile web, admin site, api, etc). I want to notify users of the desktop site of events as they happen, using SignalR. To spike this, I created a 4-project solution. A core project with the hub proxy. A web app with the hub. Another web app without the