CometD 2 & WebSocket
Enabling/Disabling WebSocket support in CometD 2
Since CometD 2.1.0, WebSocket support has been disabled by default, since the support in browsers is still too buggy.
// Using dojo style; use $.cometd for jQuery var cometd = dojox.cometd; cometd.websocketEnabled = true;
This code must be execute before the handshake to be effective.