Skip to content

Commit fb80d3e

Browse files
f3rnoJacobPlaster
authored andcommitted
(fix) oc-req notifications have no auth seq
1 parent 0d7d27e commit fb80d3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/transports/ws2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ class WSv2 extends EventEmitter {
326326
// 0 packets, these are included as the 2nd to last value
327327
const seq = (
328328
(msg[0] === 0) &&
329-
(msg[1] !== 'hb')
329+
(msg[1] !== 'hb') &&
330+
!(msg[1] === 'n' && msg[2][1] === 'oc-req')
330331
)
331332
? msg[msg.length - 2]
332333
: msg[msg.length - 1]

0 commit comments

Comments
 (0)