views:

228

answers:

2

I would like to play with the new Web Socket support in Chrome (and soon Firefox), but have been unable to find a WCF implementation that will act as the server.

Have somebody implemented a .net WCF Web Socket based server?

+2  A: 

The Web Socket protocol specification is so simple that you could implement a server to play with in a couple of hours. Assuming that you already have a TCP server component, it's just a matter of implementing the handshake (respond to a client request) and then receiving or sending data frames over TCP.

I used Delphi to implement the protocol and a chat server/client example; you can get the source code here. It shouldn't be very hard to translate it to .NET.

Tihauan
Great, thanks for the suggestion. I was actually considering just implementing it myself, but I try my best not to redo work already done. From the looks of it, I may have to actually do the work myself this time :)
Egil Hansen
A: 

Hi, I downloaded a .NET implementation of a web socket server to play around with but I'm really curios if it could be implemented by WCF? It would be much easier to deploy at my web hotell since they won't host consoleapp servers ;)

Tobbe