I’ve read somewhere that the trunk version of Firefox already had a WebSocket implementation. Nevertheless, I’ve just tried the 3.7a4pre without success. It still
gives me the old “WebSocket is not defined” error message. Am I confused with WebWorkers?
Using a flash-based WebSocket implementation is not an option.
Please advice.
According to bug 472529 a patch has not yet been applied to trunk.
WebSocket (both the API and the wire protocol) are still in draft, so we’re a way off yet.
I’m afraid a fallback (Flash, Java, XMLHttpRequest long-polling etc.) is your only option in Firefox for now. The only browser that currently has native WebSocket is Chrome.