Creates a new LocalKernelProxy instance.
The local kernel client managing the kernel lifecycle.
The webview panel to send messages to.
The initial WebSocket connection ID.
Registers an additional WebSocket connection to this kernel.
The WebSocket connection ID to register.
An empty object for the websocket-open message body.
Closes the proxy and cleans up resources.
Handles incoming WebSocket messages from the webview. Translates them to kernel protocol operations.
CRITICAL: Intercepts kernel_info_request and responds immediately with a proper reply. This allows JupyterLab's kernel.ready Promise to resolve correctly.
Raw message data from the webview (string or object).
Removes a WebSocket connection from this kernel.
The WebSocket connection ID to remove.
True if there are still active connections, false if this was the last one.
Simulates a WebSocket connection for a local ZMQ kernel. Routes kernel protocol messages between the webview and the LocalKernelClient. Supports multiple WebSocket connections to the same kernel.