From 664be77b124bc98fc5eee694933bdc57016dc9e4 Mon Sep 17 00:00:00 2001 From: Rob Pocklington Date: Sun, 3 Feb 2019 00:11:53 +1100 Subject: [PATCH] fix typo renamed `timoutId` to `timeoutId` --- lib/Transport.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Transport.js b/lib/Transport.js index fab9286..6fd6cd6 100644 --- a/lib/Transport.js +++ b/lib/Transport.js @@ -37,12 +37,12 @@ class Transport extends Events { this.ws.on('close', (code, reason) => { this.emit('close', code, reason); - clearTimeout(this.timoutId); + clearTimeout(this.timeoutId); }); this.ws.on('error', err => { this.emit('error', err); - clearTimeout(this.timoutId); + clearTimeout(this.timeoutId); }); this.ws.on('message', (data, flags) => { @@ -59,7 +59,7 @@ class Transport extends Events { ping() { this.ws.ping(); - this.timoutId = setTimeout(() => { + this.timeoutId = setTimeout(() => { this.ping(); }, this.pingInterval); } @@ -75,7 +75,7 @@ class Transport extends Events { } close() { - clearTimeout(this.timoutId); + clearTimeout(this.timeoutId); this.ws.terminate(); this.ws = null; }