即使我已经安装在Windows 8的协议SignalR不会使用WebSocket协议 [英] SignalR won't use Websocket protocol even though I have the protocol installed in windows 8
问题描述
我使用signalr做我的web应用程序的一些实时事件。我试图迫使signalr使用新的WebSocket协议,但它不会,即使我指定它。
I'm using signalr to do some real-time events in my web application. I'm trying to force signalr to use the new websocket protocol but it won't, even if I specify it.
$.connection.hub.start({ transport: 'webSockets' })
我肯定已经安装了网络套接字协议,我运行Windows 8与IIS 8。
I definitely have the web socket protocol installed and I am running Windows 8 with IIS 8.
还有什么我需要做的,能够在网络signalr插座支持?
What else do I need to do to enable web sockets support in signalr?
推荐答案
确保您的应用程序是使用.NET 4.5组件与SignalR包。如果该项目的目标是4.0,或者就这样开始了,然后就的NuGet已添加到不支持WebSockets的4.0 SignalR集的引用。如果是这样的话,那么只需卸载和signalr包重新安装到您的项目。
Ensure that your app is using the .NET 4.5 assembly from the SignalR package. If the project is targeting 4.0, or it started that way, then nuget would have added a reference to the 4.0 SignalR assembly which doesn't support websockets. If that's the case, then just uninstall and re-install the signalr packages into your project.
这篇关于即使我已经安装在Windows 8的协议SignalR不会使用WebSocket协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!