ng-event-source
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -480,10 +480,12 @@ /** @license | ||
timeout = setTimeout(onTimeout, heartbeatTimeout); | ||
timeoutConnection = setTimeout(function() { | ||
if (xhr.status === 0) { | ||
xhr.timeout = 1; | ||
if (errorOnTimeout) { | ||
console.log('No ack received'); | ||
if (connectionTimeout && connectionTimeout > 0) { | ||
timeoutConnection = setTimeout(function() { | ||
if (xhr.status === 0) { | ||
xhr.timeout = 1; | ||
if (errorOnTimeout) { | ||
console.log('No ack received'); | ||
} | ||
} | ||
} | ||
}, connectionTimeout); | ||
}, connectionTimeout); | ||
} | ||
@@ -490,0 +492,0 @@ charOffset = 0; |
{ | ||
"name": "ng-event-source", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"main": "eventsource.js", | ||
@@ -5,0 +5,0 @@ "typings": "typings.d.ts", |
Sorry, the diff of this file is not supported yet
177978
3936