Provides auto-reconnection to a websocket after it has been closed
Parameter | Type | Description |
---|---|---|
socket | undefined | Socket to add reconnection support to. |
options | undefined |
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);