dojox/socket/Reconnect (version 1.10)

Summary

Provides auto-reconnection to a websocket after it has been closed

Usage

Reconnect(socket,options);
Parameter Type Description
socket undefined

Socket to add reconnection support to.

options undefined
Returns:any

An object that implements the WebSocket API

Examples

Example 1

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);

Method Summary

Methods

Error in the documentation? Can’t find what you are looking for? Let us know!