sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.73k stars 1.66k forks source link

Doesn't work with Cowboy #2

Open ngocdaothanh opened 12 years ago

ngocdaothanh commented 12 years ago

Cowboy: https://github.com/extend/cowboy What version of WebSocket does websocket-sharp support?

websocket-sharp does work with Netty: https://github.com/netty/netty

sta commented 12 years ago

Hi.

websocket-sharp supports draft-ietf-hybi-thewebsocketprotocol-00 (hybi-00). On branch:draft75 supports older draft-hixie-thewebsocketprotocol-75 (hixie-75).

Although the support to RFC 6455 is considered, it is still undecided.

ngocdaothanh commented 12 years ago

Cowboy says "Supports the protocol version 0 (hixie-76), version 7 (hybi-7) and version 8 (hybi-8, hybi-9 and hybi-10)" (https://github.com/extend/cowboy/blob/master/src/cowboy_http_websocket.erl)

So currently websocket-sharp and Cowboy should work OK together?

sta commented 12 years ago

If version 0 (hixie-76) is the same as hybi-00, I think that websocket-sharp works with Cowboy. I did based on the WebSocket protocol hybi-00 specification(http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-00) and implemented websocket-sharp.