kkoooqq / fakebrowser

🤖 Fake fingerprints to bypass anti-bot systems. Simulate mouse and keyboard operations to make behavior like a real person.
GNU Lesser General Public License v3.0
1.13k stars 211 forks source link

wsEndpoint() Returning empty string #49

Closed 0xTushar closed 2 years ago

0xTushar commented 2 years ago

  const browserWSEndpoint = await fakeBrowser.vanillaBrowser.wsEndpoint();

`

// don't know why it is returning an empty string
RubtsovAV commented 2 years ago

I've faced with the same and I found out that it uses pipe mode by default (don't know why). Try to turn it off, or add debugging-port=0 to the list of args

RubtsovAV commented 2 years ago

Like this

    builder = new FakeBrowser.Builder()
      .deviceDescriptor(dd)
      .vanillaLaunchOptions({
        pipe: false,
      }).userDataDir(userDataDir);