signalr

SignalR - adding hubs at runtime

蓝咒 提交于 2019-12-20 06:19:00
问题 I have a working SignalR application, my global.asax.cs does all the usual MapHubs() etc, and I'm using a custom IAssemblyLocator which also loads in-memory assemblies as well as referenced assemblies. The two hubs I have are created at runtime in in-memory assemblies, and this works fine - hubs can push messages to clients etc. At some point after the application has started, I want to add another hub at run time which will sit in it's own in-memory assembly, and make it appear in the

SignalR configuration on IIS 6 / windows server 2003 R2

时光总嘲笑我的痴心妄想 提交于 2019-12-20 03:51:19
问题 I'm getting error 404 when I access signalr/hubs url on a web app deployed on IIS 6 / winSrv 2003 r2. I've tried runAllManagedModulesForAllRequests = true and false. However I found in one of the #issues a comment that says that this is for II7 and >. Also I've set the wildcard mapping to v4.0.30319\aspnet_isapi.dll and still getting the same error 404. IIS 6 Log error: W3SVC1 127.0.0.1 GET /devweb/signalr/hubs - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+Trident/4.0;+

SignalR 2.2 and ARR3.0 Load balancing

时光怂恿深爱的人放手 提交于 2019-12-20 02:35:47
问题 I am using signalr2.2 web application and hosted in IIS-8. Here I tried to implement load balancing for my application using ARR3.0. In my server farm I connected two servers and set the routing rule as 'weighted round robin'. Every server has a javascript client with HTML page. While I am accessing HTML page of any server the request has been routed as expected but I am having this error in my html page and signalr doesn't get connected WebSocket connection to 'ws://mydomain.com/signalr

Connection ID when calling SignalR Core Hub method from Controller

百般思念 提交于 2019-12-20 02:35:35
问题 This is a follow-up to another question and answer. What's the effect of calling HubContext.Clients.Caller or HubContext.Clients.Others from the controller? I see it depends on the connection ID. What value would it have in this situation? If the connection ID (and thus Caller and Others ) is invalid then (from within the controller action) how could I obtain a connection ID (for the client currently calling the Web API) that I could use with HubContext.Clients 's methods? 回答1: What's the

SignalR 2.2 and ARR3.0 Load balancing

巧了我就是萌 提交于 2019-12-20 02:35:10
问题 I am using signalr2.2 web application and hosted in IIS-8. Here I tried to implement load balancing for my application using ARR3.0. In my server farm I connected two servers and set the routing rule as 'weighted round robin'. Every server has a javascript client with HTML page. While I am accessing HTML page of any server the request has been routed as expected but I am having this error in my html page and signalr doesn't get connected WebSocket connection to 'ws://mydomain.com/signalr

SignalR : How to use IHubContext<THub,T> Interface in ASP.NET MVC?

ぐ巨炮叔叔 提交于 2019-12-19 11:46:10
问题 I have been trying to used the following approach in my ASP.NET MVC project where Microsoft.AspNet.SignalR library is used: public interface ITypedHubClient { Task BroadcastMessage(string name, string message); } Inherit from Hub: public class ChatHub : Hub<ITypedHubClient> { public void Send(string name, string message) { Clients.All.BroadcastMessage(name, message); } } Inject your the typed hubcontext into your controller, and work with it: public class DemoController : Controller {

Android Support 0 devices SignalR

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 10:43:09
问题 I am having a issue with submitting my app to the google play store because every time i upload my APK I get a "Android Supported Devices : 0" I really have no idea how to fix this. When I remove all references to signalR and remove the jar files, I get 8k devices supported. Here is some information about my project EDIT Here is Manifest <?xml version="1.0" encoding="utf-8"?> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21" /> <!-- <uses-permission android:name="android

Android Support 0 devices SignalR

笑着哭i 提交于 2019-12-19 10:42:36
问题 I am having a issue with submitting my app to the google play store because every time i upload my APK I get a "Android Supported Devices : 0" I really have no idea how to fix this. When I remove all references to signalR and remove the jar files, I get 8k devices supported. Here is some information about my project EDIT Here is Manifest <?xml version="1.0" encoding="utf-8"?> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21" /> <!-- <uses-permission android:name="android

SignalR Server Hosting Localhost

馋奶兔 提交于 2019-12-19 09:24:45
问题 I'm running a server with a localhost http://*:52080 . On the same computer, I'm run client and trying to connect to a local IP hub http://192.168.1.102:52080/signalr . Everything works well. But if I run the client on another computer (from the same local network) and try to connect to http://192.168.1.102:52080/signalr , it does not connect. The client catches an exception ( "System.AggregateException" in mscorlib.dll ). Port 52080 on the computer with the hub is open. What could be the

Change Global Settings Config in SignalR Core

对着背影说爱祢 提交于 2019-12-19 08:32:22
问题 I am using SignalR Core with ASP.Net Core . I want to override GlobalHost settings for signalR. I am getting this - protected void Application_Start(object sender, EventArgs e) { // Make long polling connections wait a maximum of 110 seconds for a // response. When that time expires, trigger a timeout command and // make the client reconnect. GlobalHost.Configuration.ConnectionTimeout = TimeSpan.FromSeconds(110); // Wait a maximum of 30 seconds after a transport connection is lost // before