diff options
Diffstat (limited to 'src/client/scripts/stream.ts')
| -rw-r--r-- | src/client/scripts/stream.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/scripts/stream.ts b/src/client/scripts/stream.ts index 18bb7c13df..4dcd3f1b2e 100644 --- a/src/client/scripts/stream.ts +++ b/src/client/scripts/stream.ts @@ -68,7 +68,7 @@ export default class Stream extends EventEmitter { */ @autobind private onOpen() { - const isReconnect = this.state == 'reconnecting'; + const isReconnect = this.state === 'reconnecting'; this.state = 'connected'; this.emit('_connected_'); @@ -87,7 +87,7 @@ export default class Stream extends EventEmitter { */ @autobind private onClose() { - if (this.state == 'connected') { + if (this.state === 'connected') { this.state = 'reconnecting'; this.emit('_disconnected_'); } @@ -100,7 +100,7 @@ export default class Stream extends EventEmitter { private onMessage(message) { const { type, body } = JSON.parse(message.data); - if (type == 'channel') { + if (type === 'channel') { const id = body.id; let connections: Connection[]; |