signalr

Problems referencing static JavaScript files in wwwroot - .Net Core 2.2 Signalr

北城以北 提交于 2019-12-11 18:00:02
问题 I'm having difficulty referencing the relevant js files for signalr from the wwwroot folder. The paths I need to reference are: wwwroot/lib/@aspnet/signalr/dist/browser/signalr.js wwwroot/js/chat.js Here is my view: @page <div class="container"> <div class="row"> </div> <div class="row"> <div class="col-6"> </div> <div class="col-6"> User..........<input type="text" id="userInput" /> <br /> Message...<input type="text" id="messageInput" /> <input type="button" id="sendButton" value="Send

Asp.Net Core 2 SignalR Ubuntu Xamarin Android

大兔子大兔子 提交于 2019-12-11 17:28:55
问题 I have deployed Asp.Net Core 2 website on ubuntu with Nginx as a reverse proxy. The website works but SignalR doesn't. Same build work locally in IIS-Express. Getting following error in logs, Terminating Long Polling connection by sending 204 response. Following nginx configuration I am using, server { listen 80; location / { proxy_pass http://localhost:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host;

SignalR warning on startup

[亡魂溺海] 提交于 2019-12-11 16:45:56
问题 I have a SignalR Hub (called SignalRHub) on which I have enabled tracing to diagnose intermittant delivery failures. When I install the hub into IIS 7.5 (Windows 3008 R2) the tracing outputs the following warning SignalR.ReflectedHubDescriptorProvider Warning: 0 : Some of the classes from assembly "Microsoft.AspNet.SignalR.Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could Not be loaded when searching for Hubs. [C:\Windows\Microsoft.NET\Framework64\v4.0.30319

Running SignalR self-host samples throws exception with latest mono dev branch

左心房为你撑大大i 提交于 2019-12-11 16:45:09
问题 Using Mono on Linux, the sample Microsoft.AspNet.SignalR.Mono found at https://github.com/SignalR/SignalR seems to work using the stable release of mono but not with the latest development branch (3.99). Anyone encounter this? I get the following exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidProgramException: Invalid IL code in (wrapper delegate-invoke) <Module>:invoke_callvirt

Difference between SignalR and Pusher

元气小坏坏 提交于 2019-12-11 16:32:58
问题 I want to create a web app using React as the front end technology. A requirement for the app is that the server will be able to update all the clients with information about changes (not have to be an exact real time, but should update after no more than 10 seconds). Solutions like clients requesting updates from the server every several seconds are out of the question. Requirements: 1) The server's should be implemented with either .NET or with Node.js. 2) The connection MUST be secured via

Signalr - websocket successfully connected but client events only called with long pooling

血红的双手。 提交于 2019-12-11 15:47:40
问题 I'm using windows server 2012 and activated websockets on it. When signalr use websockets, the connection is successfully started but no event in client side are called, only if I force signalr to connect with long polling.... Any suggestion ? Thanks 来源: https://stackoverflow.com/questions/30870898/signalr-websocket-successfully-connected-but-client-events-only-called-with-lo

How to serialize only dictionary's values into json (using json.net) [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-12-11 15:27:51
问题 This question already has answers here : C# JSON Serialization of Dictionary into {key:value, …} instead of {key:key, value:value, …} (5 answers) Closed last year . what is easiest way to serialize dictionary as list of its values into json using Json.NET? Serialization is done by SignalR, not me. So I need some attribute-like way or custom contract resolver or something like that. Dictionary is better for me on the server side but for the binding into data grid on the client, flatten object

SignalR Client Hub Proxy is Undefined

可紊 提交于 2019-12-11 14:13:47
问题 I was following this tutorial. On client side, in a simple html page, I get undefined for the client hub proxy from SignalR; What am I missing? This links work properly (client is another asp.net mvc project at the same solution): http://localhost:28538/Scripts/jquery.signalR-2.0.0.min.js http://localhost:28538/Scripts/jquery-1.8.2.min.js http://127.0.0.1:9077/signalr/hubs http://127.0.0.1:9077/signalr/js My Hub class: class AlohaHub : Hub { public void Send(string name, string message) {

Android Client doesn't get data but .net client getting data from SignalR server

时光毁灭记忆、已成空白 提交于 2019-12-11 13:57:38
问题 Apologize for the long question! I am new in SignalR. Please help me to solve my problem. I have SignalR server in web, I am getting data from .net client site but unable to get data from my Android client side. When my debugger arrived to "hub.invoke" is just stop. I have tired a lot with different codes but un-success. If I unable to do above then I want to do that in my local server at my home. I have two laptops, one is running Win7 another Win8. I want to keep a signalR server in one of

SignalR start pending

老子叫甜甜 提交于 2019-12-11 13:46:00
问题 I'm working on chat plugn within my ASP.NET MVC application. Everything works as expected when there are only two users (different browsers). When third user logs in, his SignalR start request is pending, and other users can not use application anymore. It seems that SignalR allows only two users to connect. OnConnected method in hub is never called for third user. Can someone help me? 来源: https://stackoverflow.com/questions/35042642/signalr-start-pending