的WebSockets教程ASP.NET [英] WebSockets Tutorial on ASP.NET

查看:150
本文介绍了的WebSockets教程ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单,脚踏实地,采样/例子/为的WebSockets Server和ASP.NET 4.0客户端实现的教程让我开始?我知道这个问题已经被问过,但它并没有被正确地回答。有很多关于客户端的东西,但无法找到ASP.NET有关服务器端一个简单的解释

Is there a simple, down to earth, sample/example/tutorial for WebSockets Server and Client implementation in ASP.NET 4.0 to get me started? I know this question has been asked, but it hasn't been answered properly. There is a lot of stuff about client side, but cannot find a simple explanation about server-side in ASP.NET

谢谢!

〜更新:
我发现这个教程,但不能使它工作,连接尝试连接后立即关闭。任何一个可以使它发挥作用?
<一href=\"http://www.undisciplinedbytes.com/2010/06/html-5-c-web-sockets-server-and-asp-net-client-implementation/\">http://www.undisciplinedbytes.com/2010/06/html-5-c-web-sockets-server-and-asp-net-client-implementation/

推荐答案

ASP.NET将不支持WebSockets的,直到在Windows Server 8 / IIS 8.见的这里

ASP.NET won't support WebSockets until Windows Server 8/IIS 8. See here.

有本教程中,开始使用在Windows 8的开发者$ P的WebSockets $ PVIEW ,从2011年9月。

There's this tutorial, Getting started with WebSockets in the Windows 8 developer preview, from September 2011.

如果你想看到在.NET中工作的WebSocket服务器我建议在 SuperWebSocket 考虑看看这是开源的。如果你只是想使用.NET的WebSocket服务器,然后SuperWebSocket(再次), XSockets 并的莱克值得一看。

If you want to see a working WebSocket server in .NET I'd recommend taking a look at SuperWebSocket which is open source. If you just want to use a .NET WebSocket server then SuperWebSocket (again), XSockets and Fleck are worth a look.

SignalR还依赖于Windows 8的见 SignalR的WebSockets文档

SignalR also relies on Windows 8. See the SignalR WebSockets docs.

这篇关于的WebSockets教程ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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