signalr

SignalR - Establishing Connection Taking quite a long time

萝らか妹 提交于 2019-12-22 12:22:20
问题 I have just started working with SignalR for realtime update. I need to perform some operation after the connection is established. so I have written that code in .done() method. The issue I am facing is : establishing connection takes some time and due to that I am not able to perform the operation which I am intended to. Following code snippet of my js. $(function () { // Proxy created on the fly projectHub = $.connection.projectHub; $.connection.hub.logging = true; // Start the connection

SignalR - Establishing Connection Taking quite a long time

徘徊边缘 提交于 2019-12-22 12:20:15
问题 I have just started working with SignalR for realtime update. I need to perform some operation after the connection is established. so I have written that code in .done() method. The issue I am facing is : establishing connection takes some time and due to that I am not able to perform the operation which I am intended to. Following code snippet of my js. $(function () { // Proxy created on the fly projectHub = $.connection.projectHub; $.connection.hub.logging = true; // Start the connection

SignalR not working on production server

▼魔方 西西 提交于 2019-12-22 12:07:11
问题 I am tring to utilize a simple SignalR sample and from a reason I get the 404 code from the following - <script src="<%= ResolveUrl("~/signalr/hubs") %>" type="text/javascript"></script> I checked the SignalR documentation and changed my web.config according to what is suggests there still I get that 404 status code. my code follows - Web.Config: <configuration> <system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="Microsoft.Web.Infrastructure, Version=1.0

Enabling Authentication with SIgnalR against Azure Mobile Services and a Javascript client

最后都变了- 提交于 2019-12-22 11:17:00
问题 I am having a heck of a time trying to figure out how one is supposed to have AMS authentication with SignalR while using a JavaScript client. I downloaded the JavaScript client for Azure Mobile Services, I've got Signal R on AMS - that's all hooked up and ready to go. I've got the authentication setup. I can actually call .login("microsoftaccount") on the AMS JS client and go through that process and get back a token and id. What I don't know is how to connect the two. I tried just calling $

Does SignalR support the Publish/Subscribe messaging paradigm?

限于喜欢 提交于 2019-12-22 10:50:04
问题 I want to use pub-sub messaging between multiple servers in a web farm to maintain their local (ASP.NET) caches in sync. Could this be easily done with SignalR? If it is possible, how can I do so? 来源: https://stackoverflow.com/questions/9449601/does-signalr-support-the-publish-subscribe-messaging-paradigm

Call Signalr method from Controller .Net Core 2.1

让人想犯罪 __ 提交于 2019-12-22 09:28:36
问题 I am trying to call a method in the signalr Hub class from an (ASP.NET Core) MVC Controller, but I cannot find an example online that shows how to. Note: There are lots of examples using older versions of signalr with the .Net Framework, but none that I can see that show how to do this in .Net Core. I need to pass an id from the an MVC Action Result directly through to my Hub, without passing the id to the page, and then having to get a client connection back through to the hub. public class

SignalR connection management in a web farm

别等时光非礼了梦想. 提交于 2019-12-22 08:38:38
问题 We are using SignalR in a large scale web application. We have deployed multiple web servers handling signalR connections. We have our own Redis backplane implemented, I have the following question: SignalR makes three calls to the server: 1) negotiate, 2) connect and 3) start. If we have a web farm behind a Load Balancer and these three calls end up going to three different servers, would the state of connections be corrupted on all three servers? What would happen in this scenario? I am not

How to write an NLog target using Signalr

时光总嘲笑我的痴心妄想 提交于 2019-12-22 08:29:45
问题 I'm trying to write a target for NLog to send messages out to connected clients using SignalR. Here's what I have now. What I'm wondering is should I be using resolving the ConnectionManager like this -or- somehow obtain a reference to the hub (SignalrTargetHub) and call a SendMessage method on it? Are there performance ramifications for either? [Target("Signalr")] public class SignalrTarget:TargetWithLayout { public SignalR.IConnectionManager ConnectionManager { get; set; } public

Integrating SignalR with existing Authorization

血红的双手。 提交于 2019-12-22 06:40:01
问题 I've been working on a way of integrating SignalR Authorization Attributes with a custom authorization provider (called MVCAuthorization) I went down a few rabbit holes of trying to recreate an Authorization provider for hubs specifically, but that turned out to be far too complicated. So I was wondering, how I can integrate my existing Controller and Action Authorization with my SignalR Hubs and methods? 回答1: I figured out that you can retrieve an IAuthorization provider. If you treat you

SignalR Alternative for Python

空扰寡人 提交于 2019-12-22 06:31:21
问题 What would be an alternative for SignalR in Python world? To be precise, I am using tornado with python 2.7.6 on Windows 8; and I found sockjs-tornado (Python noob; sorry for any inconveniences). But sockjs supports just 3 types of events and there are some limitations; I need things like groups, subscribers, propagating and other features that SignalR provides. 回答1: You are probably looking for Twisted, a whole real-time engine for applications. https://twistedmatrix.com/trac/ If you do