Skip to content

Commit 03df187

Browse files
chore: add back wire version check to connection
1 parent 261441a commit 03df187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmap/connection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ function supportsOpMsg(conn: Connection) {
645645
return false;
646646
}
647647

648-
return !description.__nodejs_mock_server__;
648+
return maxWireVersion(conn) >= 6 && !description.__nodejs_mock_server__;
649649
}
650650

651651
function streamIdentifier(stream: Stream, options: ConnectionOptions): string {

0 commit comments

Comments
 (0)