Closes a WebSocket connection by ID.
Extension message containing connection ID
Cleans up all WebSocket connections. Closes all active connections and clears the connection map.
Forwards HTTP requests from webview to target server. Handles method, headers, and body forwarding with response relay.
Extension message containing request details
Target webview panel for response
Opens a WebSocket connection for Jupyter kernel communication. Sets up event handlers for open, message, close, and error events.
Extension message with WebSocket configuration
Target webview panel for event notifications
PrivatepostPosts a message to the webview.
Target webview panel
Message type identifier
Message payload
OptionalrequestIdOrId: stringOptional message ID for correlation (requestId for HTTP, id for WebSocket)
Sends a message to an existing WebSocket connection.
Extension message containing data to send
Handles network communications between webview and Jupyter servers. Manages WebSocket connections and HTTP request proxying for notebook operations.
Example