Private_Disposable for cleaning up message handlers
Private_Current connection state
Binary data type for received messages
ReadonlybufferedAmount of buffered data waiting to be sent
ReadonlyclientUnique identifier for this WebSocket instance
ReadonlyCLOSEDWebSocket connection is closed
ReadonlyCLOSINGWebSocket connection is closing
ReadonlyCONNECTINGWebSocket is connecting
ReadonlyextensionsExtensions in use
ProtectedlistenersMap of event type to listener functions
ReadonlyOPENWebSocket connection is open and ready
ReadonlyprotocolSubprotocol in use
ReadonlyurlURL of the WebSocket endpoint
Private Static_Counter for generating unique client IDs
Static ReadonlyCLOSEDWebSocket connection is closed
Static ReadonlyCLOSINGWebSocket connection is closing
Static ReadonlyCONNECTINGWebSocket is connecting
Static ReadonlyOPENWebSocket connection is open and ready
Private_Private_Optionalcode: numberOptionalreason: string
Fake WebSocket implementation that proxies through postMessage. Implements the standard WebSocket API but communicates with the VS Code extension instead of directly connecting to a server.