We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1137d78 commit c2c93b8Copy full SHA for c2c93b8
src/angular2-websocket.ts
@@ -191,7 +191,7 @@ export class $WebSocket {
191
let backoffDelay = this.getBackoffDelay(++this.reconnectAttempts);
192
// let backoffDelaySeconds = backoffDelay / 1000;
193
// console.log('Reconnecting in ' + backoffDelaySeconds + ' seconds');
194
- setTimeout(this.connect(), backoffDelay);
+ setTimeout(() => this.connect(), backoffDelay);
195
return this;
196
}
197
0 commit comments