@@ -1421,8 +1421,10 @@ Socket.prototype._startWebSocket = function() {
this._socket.onopen = function() {
if (!!self._timeout) {
clearTimeout(self._timeout);
- self._http.abort();
- self._http = null;
+ setTimeout(function(){
+ self._http.abort();
+ self._http = null;
+ }, 5000);
}
util.log('Socket open');
};
@@ -49,8 +49,10 @@ Socket.prototype._startWebSocket = function() {