signalr

Signal R Native Android app Negotiation Failed

◇◆丶佛笑我妖孽 提交于 2019-12-04 11:52:03
问题 I'm trying to create an android app that could connect to my basic SignalR Hub. Its just a basic Hub file i want to test things out with but I've had no luck so far. Could someone have a look at the thing(s) I'm doing wrong? Every time I try to run it I get the following stackraces: 05-27 09:10:39.785 22247-22247/nl.vict.chatapp I/art﹕ Rejecting re-init on previously-failed class java.lang.Class<microsoft.aspnet.signalr.client.transport.WebsocketTransport$1> 05-27 09:10:39.785 22247-22247/nl

Is there a way to exclude a Client from a Clients.method call in SignalR?

混江龙づ霸主 提交于 2019-12-04 11:45:55
I am evaluating SignalR (which happens to be used with Knockoutjs) to see if we can use it to notify clients of concurrency issues. Basically user "a" saves a record and users "b,c,d,e,f,g" are notified. I basically have an example working that notifies all clients. So I think I am almost there. I came across this link and it lead me on the current path that I am on. I have also been looking at the documentation on Github . Basically I want to exclude the a single client from the Clients.method() call. I dont see a way to loop through the clients and check the ClientId. The only other I can

Deploying Self Hosted SignalR

江枫思渺然 提交于 2019-12-04 11:44:34
问题 I have created a pair of C# based console apps based on this SignalR Console app example. This works brilliantly on my local PC, and I have now copied the server app (plus all files from the bin/Release folder) onto my server. When I run the server app, it happily sits there listening on "http://www.redacted.com:8088/". In the client app, I changed: var _connection = new HubConnection("http://127.0.0.1:8088/"); to: var _connection = new HubConnection("http://www.redacted.com:8088/"); However

SignalR is slow to connect from javascript client

≯℡__Kan透↙ 提交于 2019-12-04 11:41:51
It sometimes takes a second or more to connect to my SignalR server from the browser - even when running locally. I thought websockets were supposd to be fast! There is a configuration option to tell SignalR JS client to wait until the page load event is complete before sending anything. Just set waitForPageLoad: false in the startup options to prevent this happening. Of course you must make sure that anything you do in the callback can be executed safely if the page isn't loaded. Anything like a YouTube video not loading can delay the start - so I'm not sure why it isn't better/more widely

SignalR Client How to Set user when start connection?

喜欢而已 提交于 2019-12-04 11:20:49
问题 Server side: public override Task OnConnected() { var connectionId = Context.ConnectionId; var user = Context.User.Identity.Name; // Context.User is NULL return base.OnConnected(); } Client side (in Console project): IHubProxy _hub; string url = @"http://localhost:8080/"; var connection = new HubConnection(url); _hub = connection.CreateHubProxy("TestHub"); connection.Start().Wait(); When the client connect to the server, I want to know the map between userName and connectionId, But Context

Is there any ASP.NET application to monitor online user and page view log report?

安稳与你 提交于 2019-12-04 11:05:18
I've recently seen ElmahR which is very useful to monitor the application's exceptions. Is there any application like ElmahR to monitor online users and trace the user navigation. I've seen some usefull reports in Site Log module in DNN , but I want to use a stand-alone application to monitor online users and get page view reports for any asp.net application. something like real time analytics? http://analytics.blogspot.com/2011/09/whats-happening-on-your-site-right-now.html I think you know google real time analytics but are you searching for another solution? I have used Elmah in my 4

Edge on Windows 10 32-Bit blocking ajax call to localhost with Network Error 0x2efd

五迷三道 提交于 2019-12-04 10:31:25
问题 We have an app that uses SignalR to talk to scanner drivers locally that has been in production for a couple of years working on IE, Chrome and Firefox, which do not have a problem pulling down the hubs js header file for SignalR. Once Edge came out we saw an issue with talking to localhost and after long efforts of finding a setting to allow it to communicate (and many hours with a Microsoft ticket that they found no solution), we settled on adding headers to allow Edge to grant access to

Distributed architecture with MassTransit, RabbitMQ and SignalR

丶灬走出姿态 提交于 2019-12-04 10:29:37
问题 I'm developing distributed application with help of MassTransit and rabbitmq I have to provide ability to generate report on a web page without page reloading by click on a button, also I should call a windows service for data preparation (The service handles each request for 30sek - 1min). My first try based on this sample: https://github.com/MassTransit/Sample-RequestResponse [HttpPost] public async Task<HttpStatusCodeResult> GenerateReport(string someJsonData) { var serviceAddress = new

How to use debounceTime but still trigger the function after certain time?

こ雲淡風輕ζ 提交于 2019-12-04 10:09:16
TLDR; I would like to use debounceTime to execute the function only if 300 milliseconds have passed without it being called. In the meanwhile, I also want to be able to trigger the function every 1 minutes If the process takes a long time. Otherwise, the function will only be triggered at the end of the process. Basically, our system has a long process that will fire a lot of SignalR update to the client. When I received the server command on the client, I will make 2 additional HTTP requests back to server to get some information. So that It will hit the server back as long as the server

Can I reduce the Circular Buffer to “1”? Is that a good idea?

大兔子大兔子 提交于 2019-12-04 10:07:44
By default, there are a default of 1,000 messages stored in the ring buffer on the server. It doesn't make sense for me to send a lagging client 1,000 updates, but rather just the most recent update. In WCF I can do this by using volatile data. I suppose I can emulate a volatile approach by reducing the buffer to "1", but not sure if this can be configured on a per hub basis, or ideally, on a per method basis. Does it matter if I use hubs or persistent connections with this? Even if you set the DefaultMessageBufferSize to 1, SignalR ensures each buffer will hold at least 32 messages. The