From b0fdf0030bf224dd449766291b5ae1456a56f2d9 Mon Sep 17 00:00:00 2001 From: Allen Zhou <46854522+allenzhou101@users.noreply.github.com> Date: Sat, 12 Apr 2025 16:45:05 -0700 Subject: [PATCH] Update inMemory.ts --- src/inMemory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inMemory.ts b/src/inMemory.ts index 558ca7ad..5dd6e81e 100644 --- a/src/inMemory.ts +++ b/src/inMemory.ts @@ -1,5 +1,5 @@ import { Transport } from "./shared/transport.js"; -import { JSONRPCMessage } from "./types.js"; +import { JSONRPCMessage, RequestId } from "./types.js"; import { AuthInfo } from "./server/auth/types.js"; interface QueuedMessage { @@ -49,7 +49,7 @@ export class InMemoryTransport implements Transport { * Sends a message with optional auth info. * This is useful for testing authentication scenarios. */ - async send(message: JSONRPCMessage, options?: { authInfo?: AuthInfo }): Promise { + async send(message: JSONRPCMessage, options?: { relatedRequestId?: RequestId, authInfo?: AuthInfo }): Promise { if (!this._otherTransport) { throw new Error("Not connected"); }