Merge pull request #224 from nanbingxyz/main
✨ (client/index.ts): add optional RequestOptions parameter to connect…
This commit is contained in:
commit
58adcd4d60
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue