We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2b81f commit e4df5f4Copy full SHA for e4df5f4
lib/cmap/message_stream.js
@@ -76,7 +76,8 @@ class MessageStream extends Duplex {
76
// TODO: agreed compressor should live in `StreamDescription`
77
const shouldCompress = operationDescription && !!operationDescription.agreedCompressor;
78
if (!shouldCompress || !canCompress(command)) {
79
- this.push(Buffer.concat(command.toBin()));
+ const data = command.toBin();
80
+ this.push(Array.isArray(data) ? Buffer.concat(data) : data);
81
return;
82
}
83
0 commit comments