Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing bb.connect() method from documentation #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hmprt opened this issue Apr 2, 2025 · 0 comments
Open

Missing bb.connect() method from documentation #160

hmprt opened this issue Apr 2, 2025 · 0 comments

Comments

@hmprt
Copy link

hmprt commented Apr 2, 2025

Hey all, the documentation references a bb.connect() method which takes a sessionId, like so:

import { Browserbase } from "@browserbasehq/sdk";

const bb = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY! });

// Create a session
const session = await bb.sessions.create({
  projectId: process.env.BROWSERBASE_PROJECT_ID
});

// Connect and automate
const browser = await bb.connect(session.id);

src: https://docs.browserbase.com/fundamentals/manage-browser-session

However, the BrowserBase class doesn't seem to extend this method and it is undefined. Is this an error or am I missing something? I am trying to connect to an existing session.

Using version 2.5.0 in node!

@hmprt hmprt changed the title Missing method from documentation Missing bb.connect() method from documentation Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant