signalr

SignalR, Server side methods can be called, but client side methods cannot, only in production environment

不羁岁月 提交于 2019-12-08 03:52:28
问题 I have successfully developed an hub for my newsletter sending function in a .net website. The server procedure is called by the hub, then during the sending routine, I send a client methods to report the progress status, and finally another client method to report ending of the routine. My dev environment is win10 with IIS 10, VS2013, .NET 4.5 SignalR 2.2.0. I can use websocket in my dev and work fine, but my production server is win 2008r2 (IIS 7.5), so I must use serverSentEvents, working

How to broadcast events from Web Api project to MVC app on a different App Pool using SignalR

瘦欲@ 提交于 2019-12-08 03:20:29
问题 My windows server running IIS has an MVC application in one app pool and a Web Api project in another. These projects were developed in different solutions. The web app currently communicates with the Web Api to use as a rest service. I need to add a SignalR hub to the Web Api project so that it can broadcast some data to the web app in certain situations. How can I go about doing this? I have read in other posts that you need to use Sql server as a backplane but I'm not sure that is

signalR python client

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 03:06:29
问题 Is there a serviseR (ASP .NET CORE 2.0) client for python? I've found signal library but it's too old, and doesn't working with my signalR server ( Include="Microsoft.AspNetCore.SignalR" Version="1.0.0-alpha2-final" ) because this python library uses '/negotiate' method, which is not used in new versions. 来源: https://stackoverflow.com/questions/48802936/signalr-python-client

SignalR 2.2.0 WebSocket error connecting to hub

霸气de小男生 提交于 2019-12-08 02:14:47
问题 I have an ASP.Net MVC application that I have added SignalR to. After following the "Getting Started" tutorial (with modifications of course since it's going in my application) I got it working on localhost. However once it's in the production environment, I get the following error: WebSocket connection to 'ws://xxxxx/signalr/connect?transport=webSockets&clientProtocol=1.5&connectionToken=xxxxx' failed: Connection closed before receiving a handshake response. I can access /signalr/hubs (I get

SignalR Working on One Computer But Not Others

夙愿已清 提交于 2019-12-08 02:05:55
问题 We have a Windows service hosting SignalR. The same code is running on different machines, with different results. If I go to this link on my laptop, it works: https://localhost/signalr/negotiate Response: { "Url":"/signalr", "ConnectionToken":"AQAAANCMnd8BFdERjHoAwE/...==", "ConnectionId":"0a09e290-c8af-48d6-b791-f05e3b8930b0", "KeepAliveTimeout":20.0, "DisconnectTimeout":30.0, "ConnectionTimeout":110.0, "TryWebSockets":false, "ProtocolVersion":"1.2", "TransportConnectTimeout":5.0,

How to Intercept ScaleoutMessage Broadcast: (Edited: How to send message directly to ServiceBus SignalR Backplane)

情到浓时终转凉″ 提交于 2019-12-08 00:04:08
问题 I have following scenario: User request for certain resource on server, This request is long running task and very like 2~3 seconds to 10 seconds. We issue a JobTicket to user, As our user want to wait. On receiving request we store that request in persistence storage and issue a token to user as JobTicket (GUID). User make connection with Hub to get information about that GUID. In Background: We have WAS Hosted as well as Windows Service to perform some operation on that request. On complete

SignalR scaleout in Azure for high frequency scenario

痴心易碎 提交于 2019-12-07 21:12:49
问题 From my reading on SignalR scaleout in Azure, the recommended way is to use Azure ServiceBus as a backplane. But in the same time there is limitation on using backplane for high frequency messaging. In terms of Limitation chapter in Scaleout in SignalR, I would characterize my app as something between chat and real-time game. Any tips how to implement SignalR scaleout (in Azure) for this? 回答1: You can set the # of topics (queues) that you use to increase throughput and scale up 来源: https:/

Selective IPrincipal Injection via StructureMap with SignalR

时光怂恿深爱的人放手 提交于 2019-12-07 18:37:32
问题 StructureMap is configured to inject HttpContext.Current.User when an IPrincipal is requested for any ASP.NET MVC web request, like so: For<IPrincipal>().Use(x => HttpContext.Current.User); But when my SignalR hub asks for a service that depends on an IPrincipal , injection fails because HttpContext.Current is null. Instead, SignalR already has a HubCallerContext property that exposes the current IPrincipal via Context.User . How do I configure StructureMap to always inject a valid IPrincipal

SignalR Context.User.Name returns empty

ぃ、小莉子 提交于 2019-12-07 17:20:25
问题 Whenever I try to access Context.User.Identity from a Hub , the user details are always empty. Note: Context.User does not return null, the properties are just empty: I've taken a look at a multitude of questions on SO similar to this, but all of them seem to be asking why the Context.User is null , and the answer is to move app.MapSignalR(); below ConfigureAuth(); , as I have done: public void Configuration(IAppBuilder app) { ConfigureAuth(app); app.MapSignalR(); } The HttpContext.Current

Signalr Core for ASP.net core 2.0 not working no matter what i try

↘锁芯ラ 提交于 2019-12-07 15:37:32
trying to follow microsoft's video w/ Mikael Mengistu, Jon Galloway, Maria Naggaga. https://channel9.msdn.com/Shows/Code-Conversations/Introduction-to-SignalR-Core-with-Mikael-Mengistu 0. here is what my machine looks like. dotnet --version 2.0.0-preview2-006497 runtime Microsoft .NET Core Shared Framework Host Version : 2.0.0-preview2-25407-01 Visual Studio 2017 15.3 MVC Web Project with Docker Support here is the code repo of my attempt. github.com/zhimaqiao1/SRcoreWorking the signalr-client i had to edit myself to get something at least half working. started with vanilla mvc template which