This commit is contained in:
unknown 2025-01-29 12:47:14 +00:00 committed by LucienHH
commit 80c0a131af

View file

@ -41,7 +41,7 @@ class Framer {
static decode (client, buf) {
// Read header
if (client.batchHeader && buf[0] !== client.batchHeader) throw Error(`bad batch packet header, received: ${buf[0]}, expected: ${client.batchHeader}`)
const buffer = buf.slice(client.batchHeader ? 1 : 0)
const buffer = buf.slice(client.batchHeader ? 1 : 0)
// Decompress
let decompressed
if (client.features.compressorInHeader && client.compressionReady) {