switch to optional Transport.setProtocolVersion

This commit is contained in:
Olivier Chafik 2025-06-13 13:36:04 +01:00
commit 33257f14d4
No known key found for this signature in database

View file

@ -254,9 +254,6 @@ export class Server<
const protocolVersion = SUPPORTED_PROTOCOL_VERSIONS.includes(requestedVersion)
? requestedVersion
: LATEST_PROTOCOL_VERSION;
if (this.transport) {
this.transport.protocolVersion = protocolVersion;
}
return {
protocolVersion,