GithubHelp home page GithubHelp logo

Comments (4)

ysmood avatar ysmood commented on July 20, 2024

你需要自己写一个代理来处理这个再链接,cdp 协议不支持断开连接重连。类似于 tmux 的 attach

from rod.

stevenyangecho avatar stevenyangecho commented on July 20, 2024

谢谢,我应该不需要完整的你那种意义的断开重连,我只需要不把页面关掉即可,然后通过browser.Pages() 取得页面,再操作就行了.
比如说目前手动应该可以实现我的需求

手动启动 浏览器 chrome.ee --remote-debugging-port=9222

然后程序里
rod.New().ControlURL("ws://127.0.0.1:9222")

这样,不管我程序如何重启,浏览器都不关闭,原来的tab都保留

只不过目前rod里launcher Manage 管理起来很先进方便 !看看有没有支持这种模式的~~

from rod.

ysmood avatar ysmood commented on July 20, 2024

manager 目前不支持这种,你可能需要自己改下 manager 的代码。我推荐还是走代理比较好,否则容易内存泄露。

from rod.

stevenyangecho avatar stevenyangecho commented on July 20, 2024

好的,谢谢,那我再研究研究,希望以后官方增加这种管理模式~~

from rod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.