Skip to content

Commit 404bd7a

Browse files
committed
(refactor) log all received messages, even if seq audit fails
1 parent ceddd87 commit 404bd7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/transports/ws2.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ class WSv2 extends EventEmitter {
532532
return
533533
}
534534

535+
debug('recv msg: %j', msg)
536+
535537
if (this._seqAudit) {
536538
const seqErr = this._validateMessageSeq(msg)
537539

@@ -564,8 +566,6 @@ class WSv2 extends EventEmitter {
564566
return
565567
}
566568

567-
debug('recv msg: %j', msg)
568-
569569
if (msg.length < 2) return
570570
if (msg[1] === 'hb') return // TODO: optionally track seq
571571

0 commit comments

Comments
 (0)