Private_Private_Private Readonly_Private_Private_Private_Private_Private Readonly_Private_Forwards a kernel message to the webview as a WebSocket message. Sanitizes Buffer objects in the idents field to proper format for postMessage. Also translates the kernel's session ID to JupyterLab's expected session ID.
Private_Sends a message to the webview. Broadcasts to all registered client connections, or to a specific client if specified.
OptionalspecificClientId: stringPrivate_Sets up listeners for kernel messages and forwards them to the webview.
Registers an additional WebSocket connection to this kernel. Returns 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.
Removes a WebSocket connection from this kernel. Returns 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.