Skip to content

Commit 58adcd4

Browse files
Merge pull request #224 from nanbingxyz/main
✨ (client/index.ts): add optional RequestOptions parameter to connect…
2 parents 39e6ec5 + 78a7754 commit 58adcd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class Client<
124124
}
125125
}
126126

127-
override async connect(transport: Transport): Promise<void> {
127+
override async connect(transport: Transport, options?: RequestOptions): Promise<void> {
128128
await super.connect(transport);
129129

130130
try {
@@ -138,6 +138,7 @@ export class Client<
138138
},
139139
},
140140
InitializeResultSchema,
141+
options
141142
);
142143

143144
if (result === undefined) {

0 commit comments

Comments
 (0)