Creates a new MessageHandler instance.
Clear all pending requests (useful for cleanup).
Dispose the message handler and cleanup resources.
Register a callback for all incoming messages.
Message handler function.
Disposable to unregister the handler.
Register a callback to receive all messages from the extension. Returns a disposable to unregister the callback.
Function to call when messages are received.
Disposable to unregister the callback.
Send a request to the extension and wait for response.
Data payload to send to the extension host.
Maximum wait time in milliseconds before rejecting (default: 30000).
Promise resolving to response message.
Send a message to the extension (fire and forget).
Message to send.
Type-safe message handler with async/await support. Handles bidirectional communication between webview and extension.