@elementor/angie-sdk 1.3.0-beta.7 → 1.3.0-beta.9
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,12 +1,12 @@
|
|
|
1
1
|
import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
2
|
-
import { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { type MessageExtraInfo, JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Transport implementation that uses the browser's MessageChannel API for communication
|
|
5
5
|
* between different browser contexts (iframes, workers, tabs, windows, etc.).
|
|
6
6
|
*/
|
|
7
7
|
export declare class BrowserContextTransport implements Transport {
|
|
8
8
|
sessionId?: string;
|
|
9
|
-
onmessage?: (message:
|
|
9
|
+
onmessage?: <T extends JSONRPCMessage>(message: T, extra?: MessageExtraInfo) => void;
|
|
10
10
|
onerror?: (error: Error) => void;
|
|
11
11
|
onclose?: () => void;
|
|
12
12
|
private _port;
|