The Chrome Remote Debugger client for Page.
ESM
and CJS
need install:
yarn add chrome-remote-debugger-client -S
# OR
npm install chrome-remote-debugger-client --save
Support three import mode:
- ESM:
import CRD from 'chrome-remote-debugger-client'
- CJS
const CRD = require('chrome-remote-debugger-client')
- UMD
<script type="text/javascript" src="crd.umd.min.js"></script>
Creating a class instance and init:
new CRD([options]).init()
-
pid: Page unique identification, generate autoing when no setting
-
wsOrigin: Be registered server address, include
host
andport
. Generate by local host when no setting. Also, using a query paramwsOrigin
cover this setting. For example:http://10.253.32.115:9222/test/demo.html?wsOrigin=10.253.32.115:9222
The supporting services in another warehouse is Chrome Remote Debugger