Docs: show how to attach ComputerUse to a hosted Chrome CDP WebSocket

Đang mở Phù hợp với người mới
#6,971 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
85/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
documentation

Hướng nghiên cứu

Tìm hướng dẫn về gói ComputerUse và phần cấu hình trình duyệt bên ngoài. Đọc ví dụ ws:// cục bộ hiện có, sau đó thêm cấu hình wss:// được lưu trữ như trong issue, bao gồm cả phương thức truyền tải CDP và hướng dẫn về việc tái sử dụng ngữ cảnh cũng như thông tin xác thực của endpoint. Hoàn thành khi hướng dẫn giải thích cách kết nối với trình duyệt Chrome được lưu trữ đang chạy và ví dụ giữ endpoint trong một biến môi trường.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

The External Browser Attach guide shows the override for a local ws:// CDP endpoint. Readers with a hosted Chrome wss:// URL can easily follow the default WebSocket path and send a CDP URL to the Playwright server transport.

Documentation suggestion

Add a hosted CDP example under the external browser configuration in the ComputerUse package guide. Explain that callers start the browser separately, pass the complete endpoint from a private environment variable and specify the CDP transport.

const endpoint = process.env.BROWSER_CDP_URL;
if (!endpoint) throw new Error('Set BROWSER_CDP_URL to a browser CDP endpoint');

const config = new BrowserConfig();
config.Connect = endpoint;
config.ConnectType = 'cdp';
config.ReuseExistingContext = false;

The isolated context is appropriate for independent checks. Enable context reuse only when the caller intends to share the attached browser's existing session. A browser-level URL with a token is a credential.

Verification and affiliation

I prepared this on behalf of Cloudbrowser. Its virtual browser setup guide shows where to obtain an endpoint for an already running Chrome desktop. I tested the configuration with @memberjunction/computer-use 6.2.3 and disposable Chrome behind a local TLS WebSocket bridge. Both runs navigated successfully. The isolated context did not receive the browser's saved cookie. Explicit reuse did, and closing the adapter left the original tab and cookie in place. The endpoint and credential in the test were local fixtures.

Ngôn ngữ chính
TSQL
Star
32
Fork
7
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
504

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MemberJunction/MJ

Tất cả issue của MemberJunction/MJ

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.