Sha256: adf616ad191d1fe350872cd5e0bcdc5bb4b5cdbb20be0146b15ffb902e1cfc3d

Contents?: true

Size: 732 Bytes

Versions: 9

Compression:

Stored size: 732 Bytes

Contents

//>>built
define("dojox/socket/Reconnect",["dijit","dojo","dojox"],function(_1,_2,_3){
_2.provide("dojox.socket.Reconnect");
_3.socket.Reconnect=function(_4,_5){
_5=_5||{};
var _6=_5.reconnectTime||10000;
var _7=_2.connect(_4,"onclose",function(_8){
clearTimeout(_9);
if(!_8.wasClean){
_4.disconnected(function(){
_3.socket.replace(_4,_a=_4.reconnect());
});
}
});
var _9,_a;
if(!_4.disconnected){
_4.disconnected=function(_b){
setTimeout(function(){
_b();
_9=setTimeout(function(){
if(_a.readyState<2){
_6=_5.reconnectTime||10000;
}
},10000);
},_6);
_6*=_5.backoffRate||2;
};
}
if(!_4.reconnect){
_4.reconnect=function(){
return _4.args?_3.socket.LongPoll(_4.args):_3.socket.WebSocket({url:_4.URL||_4.url});
};
}
return _4;
};
});

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/socket/Reconnect.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/socket/Reconnect.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/socket/Reconnect.js
dojox-rails-0.11.0 vendor/assets/javascripts/socket/Reconnect.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/socket/Reconnect.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/socket/Reconnect.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/socket/Reconnect.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/socket/Reconnect.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/socket/Reconnect.js