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