Skip to content

Commit 6d817af

Browse files
author
Yoseph Maguire
authored
Merge pull request mqttjs#1209 from nosovk/patch-3
fix mqttjs#1175
2 parents 185307e + 974e393 commit 6d817af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connect/ws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function browserStreamBuilder (client, opts) {
141141
}
142142
proxy.on('close', () => { socket.close() })
143143

144-
const eventListenerSupport = (typeof socket.addEventListener === 'undefined')
144+
const eventListenerSupport = (typeof socket.addEventListener !== 'undefined')
145145

146146
// was already open when passed in
147147
if (socket.readyState === socket.OPEN) {

0 commit comments

Comments
 (0)