Update src/inMemory.ts

Co-authored-by: Justin Spahr-Summers <justin@jspahrsummers.com>
This commit is contained in:
Allen Zhou 2025-04-08 12:49:58 -05:00 • committed by GitHub
commit bc38bb29c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@ export class InMemoryTransport implements Transport {
* Sends a message with optional auth info.
* This is useful for testing authentication scenarios.
*/
async sendWithAuth(message: JSONRPCMessage, authInfo?: AuthInfo): Promise<void> {
async send(message: JSONRPCMessage, options?: { authInfo?: AuthInfo }): Promise<void>
if (!this._otherTransport) {
throw new Error("Not connected");
}