Function
to add reconnection support to.
Provides auto-reconnection to a websocket after it has been closed
An object that implements the WebSocket API
You can use the Reconnect module:
dojo.require("dojox.socket");
dojo.require("dojox.socket.Reconnect");
var socket = dojox.socket({url:"/comet"});
// add auto-reconnect support
socket = dojox.socket.Reconnect(socket);Object
Object