signalr

SignalR updates not working correctly with Chrome

匆匆过客 提交于 2019-12-22 05:32:22
问题 I have created an ASP MVC 4 application with SignalR notifications. I run it in Debug mode locally and also on a server through IIS publish. This works mostly (explained later) as expected when using Internet Explorer 11: HTML1300: Navigation occurred. File: AllChanges SignalR: Window unloading, stopping the connection. SignalR: Stopping connection. SignalR: Stopping forever frame. SignalR: Fired ajax abort async = false. SignalR: Stopping the monitoring of the keep alive. JQMIGRATE: Migrate

SignalR wth gzip compression

让人想犯罪 __ 提交于 2019-12-22 05:06:50
问题 Having some problem developing a SignalR client for a Hub hosted in asp.net website with gzip compression enabled. Since we are using IIS compression, the response from SignalR also gets compressed, but, the client does not understand the response and we get a Json parsing error on the client side. SignalR internally uses HttpWebRequest to make make http requests and HttpWebRequest can be configured to automatically decompress the response using AutomaticDecompression property. So, if somehow

RavenDB and SignalR Nuget Package Dependency Conflict

谁说胖子不能爱 提交于 2019-12-22 04:04:49
问题 Basic conflict. SignalR wants Newtonsoft.Json version 4.0.7 or higher while RavenDB wants version equal to 4.0.5. Which obviously means they can't be installed side by side. So aside from downloading the source code from one of them and getting the dependencies figured out locally then have to check in the binary created from that, is there a possible way to keep the dependencies managed with NuGet, and maybe just forward the DLL Calls (like Mvc does with each new version for example)? 回答1:

signalR : /signalr/hubs is not generated

限于喜欢 提交于 2019-12-22 01:37:23
问题 I can get this tutorial to work in a new project, but not in my existing project. My project is an ASP.Net MVC 4 web application with the following attribute in the web.config file: <appSettings> <add key="webpages:Enabled" value="true"/> </appSettings> This is because my application is a Single-Page-Application, which uses AngularJS on the client side. The only page in my application is index.cshtml, to which I've added the relevant code for signalR: <!-- signalR chat --> <script src="~

SignalR cookies not sent from client

倾然丶 夕夏残阳落幕 提交于 2019-12-21 23:11:09
问题 I have a cookie which is sent from the client which is used as part of my MVC web service, however now that I have integrated a hub into this application the hub doesnt get sent the cookie, whereas the mvc app does. Now after reading other similar questions (not that there are many) the cookies domain seems to be to blame, or the path is not set. Currently my system has 2 web apps, the ui and service. In my dev environment it is like so: Service http://localhost:23456/<some route> UI http:/

SignalR cookies not sent from client

心已入冬 提交于 2019-12-21 23:01:01
问题 I have a cookie which is sent from the client which is used as part of my MVC web service, however now that I have integrated a hub into this application the hub doesnt get sent the cookie, whereas the mvc app does. Now after reading other similar questions (not that there are many) the cookies domain seems to be to blame, or the path is not set. Currently my system has 2 web apps, the ui and service. In my dev environment it is like so: Service http://localhost:23456/<some route> UI http:/

Notify SignalR Server On Client Disconnected Accidentally (Disgracefully)

假如想象 提交于 2019-12-21 22:32:59
问题 I am setting my GlobalHost Configuration like this by following this answer to listen when the client is unreachable : GlobalHost.Configuration.ConnectionTimeout = TimeSpan.FromSeconds(50); GlobalHost.Configuration.DisconnectTimeout = TimeSpan.FromSeconds(30); GlobalHost.Configuration.KeepAlive = TimeSpan.FromSeconds(10); And Overriding the OnDisconnected method in my HUB Class to set the client has been disconnected public override Task OnDisconnected(bool stopCalled) { /*My code for saving

.NET Scalable Pub/Sub service implementation

佐手、 提交于 2019-12-21 21:26:18
问题 I need to build a system that is similar to a pub/sub system. It is composed of multiple sub-systems or services running in separate executables or as a Windows Services. The sub-systems are: The pub/sub service A pub/sub service managing communications between the internal sub-systems and the users. A user can have multiple channels open (A web page connected to a SignalR service, a mobile device connected to a duplex WCF service, etc.). The service should manage all the channels of an user

SignalR .NET Client doesn't support WebSockets on Windows 7

这一生的挚爱 提交于 2019-12-21 12:57:09
问题 I've written a small echo-server (.net 4.5), console client (.net 4.5) and web client using SignalR and example presented here. Server is hosted in IIS8/Win8. Then I ran both clients on Win7. and I see that web client in Chrome uses webSockets, while console app client uses serverSentEvents. If I run console client on Win8, then webSockets transport is in use. Is it true that SignalR .NET client will use webSockets only on Win8 and higher? 回答1: It's correct: .NET client uses WebSockets only

SignalR .NET Client doesn't support WebSockets on Windows 7

女生的网名这么多〃 提交于 2019-12-21 12:57:02
问题 I've written a small echo-server (.net 4.5), console client (.net 4.5) and web client using SignalR and example presented here. Server is hosted in IIS8/Win8. Then I ran both clients on Win7. and I see that web client in Chrome uses webSockets, while console app client uses serverSentEvents. If I run console client on Win8, then webSockets transport is in use. Is it true that SignalR .NET client will use webSockets only on Win8 and higher? 回答1: It's correct: .NET client uses WebSockets only