crossfire icon indicating copy to clipboard operation
crossfire copied to clipboard

Crossfire should support WebSockets

Open mrennie opened this issue 12 years ago • 0 comments

Crossfire will need to be modified to support the WebSockets handshake protocol if we want to work with WebSockets.

http://en.wikipedia.org/wiki/WebSockets#WebSocket_Protocol_Handshake

State of websocket support for FF4: https://bugzilla.mozilla.org/show_bug.cgi?id=616733

Some useful references:

Websocket spec: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-03

See the section "Opening handshake" (page 6): http://www.whatwg.org/specs/web-socket-protocol/

An example of the handshake algorithm implemented in Java: http://jwebsocket.googlecode.com/svn/trunk/shared/J2SE/jWebSocketCommon/org/jwebsocket/kit/WebSocketHandshake.java

Here is a websocket server and client implementation for xulrunner:

https://github.com/cadorn/narwhal-xulrunner/blob/master/content/lib/websocket-server.js

https://github.com/cadorn/narwhal-xulrunner/blob/master/content/lib/websocket-client.js

mrennie avatar Aug 09 '12 16:08 mrennie