Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been reading quite a bit about this now, and feel like it's time to put it to the test. Only problem is: There aren't any native support out there. I know it's a bug for both Firefox and Webkit, which means it won't be long (hopefully) before they're in the nightlies. And I know Apache is (kinda) working on websocket support, but they seem to have been beaten by a 3rd party extension (experimental, as they call it).

So. To the question. Has anyone gotten to the point where they've successfully built their own Firefox or Webkit-browser with websockets, and gotten a server running that supports websockets? If so, could you post a quick how-to.

I've been trying to build Firefox, using the patch from the bugzilla, but it keeps getting rejected. I haven't looked at the 3rd party extension to Apache yet, but if you have, let me know (:

share|improve this question
Does this belong on – ChrisF Sep 25 '09 at 9:17
Does it? I wasn't sure. Since it's more about setting up the computer, than any specific programming language, I thought this was the best place for it. – peirix Sep 25 '09 at 9:44
up vote 1 down vote accepted

The Websockets APIs are close to finalized, it is the wire format that is still under review by the IETF (and the Web Apps group).

You can try Kaazing's Websocket gateway which also provides an emulation layer for older browsers lacking support for Websockets - Kaazing has support for vanilla JS, Flash, Silverlight, Java, and JavaFX.

share|improve this answer
Kaazing's gateway is really good for experimenting with the options once a websocket server is set up, but not so good for the actual set-up part, since it's not open source. Oh, well. Guess we'll just have to wait 'til the API's done. – peirix Oct 14 '09 at 12:58
Kaazing's gateway seems overly complex for doing experiments on. A websocket is a TCP socket with a very simple interface, and making a server in Java for playing around with should be very easy. – Marius Nov 7 '09 at 7:05

I think it'd be a bit premature to put WebSocket support in the browser just yet, the API isn't finalised.

For now, you can use an emulated WebSocket that relies on Flash. gimite has one implementation, along with a Ruby backend. (But the backend of WebSocket is so simple you'll probably be writing your own server for it IMO. I'm really not at all sure what the point of tying that into Apache and the obsolescent mod_python is.)

share|improve this answer

I set up an example project using a Ruby server and JavaScript clients. I use the "web-socket-flash" project to emulate WebSockets in older browsers. The instructions are included in the README.txt.

My README.txt also has links to some other useful resources.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .