Skip to content

Commit 7b80680

Browse files
authored
Fix StreamableHTTPClientTransport instantiation
The baseUrl is type of URL at Line 1225.
1 parent b28c297 commit 7b80680

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,9 +1228,7 @@ try {
12281228
name: 'streamable-http-client',
12291229
version: '1.0.0'
12301230
});
1231-
const transport = new StreamableHTTPClientTransport(
1232-
new URL(baseUrl)
1233-
);
1231+
const transport = new StreamableHTTPClientTransport(baseUrl);
12341232
await client.connect(transport);
12351233
console.log("Connected using Streamable HTTP transport");
12361234
} catch (error) {

0 commit comments

Comments
 (0)