crossfire
crossfire copied to clipboard
Crossfire should support WebSockets
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