Creates a WebSocket for the renderer or extension host depending on where you're running

  • Parameters

    • url: string

    Returns Promise<WebSocket>

    WebSocket