0.1.0 • Published 3 years ago

chrome-remote-debugger-client v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Chrome Remote Debugger Client

The Chrome Remote Debugger client for Page.

Install

ESM and CJS need install:

    yarn add chrome-remote-debugger-client
  1. ESM:
    import CRD from 'chrome-remote-debugger-client'
  1. CJS
    const CRD = require('chrome-remote-debugger-client')
  1. UMD
    <script type="text/javascript" src="crd.umd.min.js"></script>

Usage

Creating a class instance and init:

    new CRD([options]).init()

SDK Options

  • pid: Page unique identification, generate autoing when no setting

  • wsOrigin: Be registered server address, include host and port. Generate by local host when no setting. Also, using a query param wsOrigin cover this setting. For example: http://10.253.32.115:9222/test/demo.html?wsOrigin=10.253.32.115:9222