Merge pull request #224 from nanbingxyz/main

✨ (client/index.ts): add optional RequestOptions parameter to connect…
This commit is contained in:
Justin Spahr-Summers 2025-04-07 11:31:28 +01:00 • committed by GitHub
commit 58adcd4d60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,7 +124,7 @@ export class Client<
}
}
override async connect(transport: Transport): Promise<void> {
override async connect(transport: Transport, options?: RequestOptions): Promise<void> {
await super.connect(transport);
try {
@ -138,6 +138,7 @@ export class Client<
},
},
InitializeResultSchema,
options
);
if (result === undefined) {