Merge pull request #164 from TornjV/patch-1
Restore timeout search param
This commit is contained in:
commit
014730fb2f
1 changed files with 3 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue