WebSockets Tutorial on 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

Thanks!

~Update:
I Found this tutorial, but cannot make it work, the connection closes right after attempting to connect. any one can make it work?
http://www.undisciplinedbytes.com/2010/06/html-5-c-web-sockets-server-and-asp-net-client-implementation/

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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

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

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 also relies on Windows 8. See the SignalR WebSockets docs.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x