We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0002700 commit b8614e1Copy full SHA for b8614e1
src/serializer.js
@@ -43,8 +43,8 @@ class Parser extends Transform {
43
try {
44
packet = this.parsePacketBuffer(this.queue)
45
} catch (e) {
46
+ e.buffer = this.queue
47
if (e.partialReadError) { return cb() } else {
- e.buffer = this.queue
48
this.queue = Buffer.alloc(0)
49
return cb(e)
50
}
@@ -77,6 +77,7 @@ class FullPacketParser extends Transform {
77
JSON.stringify(packet.data) + '; buffer :' + chunk.toString('hex'))
78
79
80
81
if (e.partialReadError) {
82
if (!this.noErrorLogging) {
83
console.log(e.stack)
0 commit comments