javascript - 捕获 Google Chrome Websocket 事件

标签 javascript google-chrome

我需要在 Google Chrome 中打开的某个页面上捕获来自服务器的 websockets 响应。我可以从网络->WS 面板中的开发人员工具中看到它们。我可以通过创建浏览器扩展或注入(inject)脚本来捕获它们吗?

最佳答案

您可以使用 Wireshark 完成所有操作,但如果没有 chrome,那就不行了。

With the updated Chrome Dev Tools, you can now see the WebSocket traffic coming and going to and from your browser without using tools like Wireshark

Reference

关于javascript - 捕获 Google Chrome Websocket 事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35887147/

相关文章:

javascript - 如何淡化渲染组件的底部边缘直到重新渲染?

javascript - react 原生构建错误 : Attempt to invoke virtual method'boolean com. facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()

javascript - 字体大小异常变化

html - 如何将此 CSS 转换为 webkit

google-chrome - 没有链接的 Typescript blob 文件名

html - 在 Asp.Net 元素中为 google chrome 引用 .css 和 .js 文件

javascript - NodeJS Express 如何转义 HTML 实体以用于显示目的

javascript - 如何在 PhantomJS 脚本中将 customHeaders 作为系统参数传递?

javascript - 如何使用 html2canvas.js 将带有 @font-face 的 SVG 文本元素转换为 Canvas ?

javascript - 使用 Google Chrome 浏览器内嵌框架测试 Internet Explorer 8?