Update useConnection.ts

This commit is contained in:
Veljko Tornjanski 2025-03-05 18:17:39 +01:00 • committed by GitHub
commit 9c690e004b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,9 @@ import { Notification, StdErrNotificationSchema } from "../notificationTypes";
import { auth } from "@modelcontextprotocol/sdk/client/auth.js";
import { authProvider } from "../auth";
const DEFAULT_REQUEST_TIMEOUT_MSEC = 10000;
const params = new URLSearchParams(window.location.search);
const DEFAULT_REQUEST_TIMEOUT_MSEC =
parseInt(params.get("timeout") ?? "") || 10000;
interface UseConnectionOptions {
transportType: "stdio" | "sse";