MCPcopy Create free account
hub / github.com/socketstream/socketstream / attemptReconnect

Function attemptReconnect

lib/websocket/transports/sockjs/wrapper.js:79–87  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

77 };
78
79 function attemptReconnect(time){
80 setTimeout(function(){
81 ss.assignTransport(config);
82 if (ss.server.event !== "reconnect") {
83 reconnectionTimeout *= 1.5;
84 }
85 }, time);
86 clearTimeout(); // huh?
87 }
88
89 sock.onclose = function() {
90 reconnectSwitch = true;

Callers 1

wrapper.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected