Datalayer VS Code Extension - v0.0.6
    Preparing search index...

    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.

    Hierarchy

    • EventTarget
      • ProxiedWebSocket
    Index

    Constructors

    Properties

    _disposable: { dispose(): void }

    Disposable for cleaning up message handlers

    _readyState: number

    Current connection state

    binaryType: BinaryType

    Binary data type for received messages

    bufferedAmount: number = 0

    Amount of buffered data waiting to be sent

    clientId: string

    Unique identifier for this WebSocket instance

    CLOSED: 3

    WebSocket connection is closed

    CLOSING: 2

    WebSocket connection is closing

    CONNECTING: 0

    WebSocket is connecting

    extensions: string = ""

    Extensions in use

    listeners: Map<string, Set<(...args: unknown[]) => void>> = ...

    Map of event type to listener functions

    OPEN: 1

    WebSocket connection is open and ready

    protocol: string

    Subprotocol in use

    url: string

    URL of the WebSocket endpoint

    _clientCounter: number = 0

    Counter for generating unique client IDs

    CLOSED: 3

    WebSocket connection is closed

    CLOSING: 2

    WebSocket connection is closing

    CONNECTING: 0

    WebSocket is connecting

    OPEN: 1

    WebSocket connection is open and ready

    Accessors

    Methods

    • Parameters

      • type: string
      • listener: (...args: unknown[]) => void

      Returns void

    • Parameters

      • event: Event
      • ...customArguments: unknown[]

      Returns boolean

    • Parameters

      • type: string
      • listener: (...args: unknown[]) => void

      Returns void