@elementor/angie-sdk 1.3.0-beta.6 → 1.3.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
2
|
+
import type { MessageExtraInfo } from '@modelcontextprotocol/sdk/types.js';
|
|
2
3
|
import { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
|
|
3
4
|
/**
|
|
4
5
|
* Transport implementation that uses the browser's MessageChannel API for communication
|
|
@@ -6,7 +7,7 @@ import { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
|
|
|
6
7
|
*/
|
|
7
8
|
export declare class BrowserContextTransport implements Transport {
|
|
8
9
|
sessionId?: string;
|
|
9
|
-
onmessage?: (message:
|
|
10
|
+
onmessage?: <T extends JSONRPCMessage>(message: T, extra?: MessageExtraInfo) => void;
|
|
10
11
|
onerror?: (error: Error) => void;
|
|
11
12
|
onclose?: () => void;
|
|
12
13
|
private _port;
|