Merge commit '3b583e1f45' as 'packages/mcp-typescript'

This commit is contained in:
Ashwin Bhat 2024-10-07 13:38:38 -07:00
commit 1f8d44dafd

20
packages/mcp-typescript/dist/client/sse.d.ts generated vendored Normal file
View file

@ -0,0 +1,20 @@
import { Transport } from "../shared/transport.js";
import { JSONRPCMessage } from "../types.js";
/**
* Client transport for SSE: this will connect to a server using Server-Sent Events for receiving
* messages and make separate POST requests for sending messages.
*
* This uses the EventSource API in browsers. You can install the `eventsource` package for Node.js.
*/
export declare class SSEClientTransport implements Transport {
private _eventSource?;
private _endpoint?;
private _abortController?;
onclose?: () => void;
onerror?: (error: Error) => void;
onmessage?: (message: JSONRPCMessage) => void;
connect(url: URL): Promise<void>;
close(): Promise<void>;
send(message: JSONRPCMessage): Promise<void>;
}
//# sourceMappingURL=sse.d.ts.map