Chrome远程调试之WebSocket


var ws = new WebSocket('ws://localhost:9222/devtools/page/3c5c05fa-80b7-4cfe-8d1d-ebe79a7a5730');
ws.onopen= function() {
    ws.send('{"id": 1, "method": "Page.navigate", "params": {"url": "https://www.fangdushi.com"}}')
};
ws.onmessage= function(evt) {
    console.log('Received a message from the server!'+evt.data);
};
api文档地址https://chromedevtools.github.io/devtools-protocol/1-2

 

上一篇:Vue安装Vue Devtools调试工具提示 Error: Cannot find module '@vue-devtools/build-tools' 解决办法


下一篇:关于vue-detools chorme创建安装完成,但是控制台不显示问题