在Windows 7上使用WebSocket [英] Using WebSocket on Windows 7

查看:1765
本文介绍了在Windows 7上使用WebSocket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Visual Studio 2012 RC,并尝试运行启用了WebSocket的netHttpBinding服务并出现以下错误

I just installed visual studio 2012 RC and tried to run a service with netHttpBinding enabling WebSocket and get the following error

该平台不支持服务器端WebSockets。

This platform does not support server side WebSockets.

我正在运行的示例来自 http://blogs.microsoft.co.il/blogs/idof /archive/2012/03/01/what-s-new-in-wcf-4-5-websocket-support-part-1-of-2.aspx

the sample i am running is from http://blogs.microsoft.co.il/blogs/idof/archive/2012/03/01/what-s-new-in-wcf-4-5-websocket-support-part-1-of-2.aspx

WebSockets可以在Windows 7和Visual Studio 2012 RC上运行吗?

Can WebSockets work on Windows 7 with visual studio 2012 RC ?

推荐答案

不,Websockets仅受本地支持Windows 8中的Windows,无论您使用的是哪个Visual Studio版本。

No, websockets is only natively supported by Windows in Windows 8, regardless of which visual studio version you are using.

http:/ /www.paulbatum.com/2011/09/getting-started-with-websockets-in.html

这是由于带有http.sys的Windows 7。

This is due to some low level issues in Windows 7 with http.sys.

可能会有反向移植的机会,但似乎不太可能:http://weblogs.asp.net/owscott/archive/2012/03/01/what-s-new- in-iis-8.aspx

There's an offchance it may be backported, but seems unlikely: http://weblogs.asp.net/owscott/archive/2012/03/01/what-s-new-in-iis-8.aspx

要在Windows 7上使用websocket,您必须编写自己的服务。

To use websockets on Windows 7, you'll have to write your own service.

尝试将其用于客户端: http://websocket4net.codeplex.com/

Try using this for clientside: http://websocket4net.codeplex.com/

,并在服务器端使用: http://superwebsocket.codeplex.com/

and this for server side: http://superwebsocket.codeplex.com/

这篇关于在Windows 7上使用WebSocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆