简体   繁体   English

为什么 chrome 开发者工具不显示 WhatsApp 网络应用程序请求?

[英]Why chrome developer tool does not show WhatsApp web app requests?

Today, i uses new WhatsApp web app and tried to learn about what libraries they used and how they communicate with the server.今天,我使用新的 WhatsApp 网络应用程序并尝试了解他们使用的库以及他们如何与服务器通信。

I opened Chrome developer tool and then tried some actions in UI.我打开了 Chrome 开发者工具,然后在 UI 中尝试了一些操作。 But no requests is displayed in Chrome developer tool.但是 Chrome 开发者工具中没有显示任何请求。

Why i could not see any requests(both HTTP and WebSocket requests)?为什么我看不到任何请求(HTTP 和 WebSocket 请求)?

You have to open the Google Chrome inspector before the WebSocket connection is opened.您必须在打开 WebSocket 连接之前打开 Google Chrome 检查器。 Then as @Hernan has pointed out, you go to network -> websockets, select the connection with 101 status and in the frames tab you will see the messages.然后正如@Hernan 指出的那样,您转到网络-> websockets,选择状态为 101 的连接,然后在框架选项卡中您将看到消息。 But you have to switch from "Frames" to "Headers" tab and come back again in order to Chrome refresh the frames.但是您必须从“框架”切换到“标题”选项卡并再次返回,以便 Chrome 刷新框架。

If you send messages with the Frame tab opened, it does not update automatically.如果您在“框架”选项卡打开的情况下发送消息,它不会自动更新。 Or if you open the Chrome inspector after the WebSocket connection has been established, you won´t see the connection.或者,如果您在建立 WebSocket 连接后打开 Chrome 检查器,您将看不到该连接。

Whatsapp web is using websocket. Whatsapp web 正在使用 websocket。 go to inspect mode -> network -> websockets进入检查模式 -> 网络 -> websockets

The message it's encrypted but you can see the send and received message even if the remote user (phone number) is available or not.该消息已加密,但即使远程用户(电话号码)可用,您也可以看到发送和接收的消息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么 WhatsApp 网页不显示 og 图像? - Why WhatsApp web does not show og image? Chrome 开发人员工具没有捕获在网络选项卡中提交的表单,为什么? - Chrome developer tool does Not capture a form submit in network tab, Why? Chrome网络开发人员工具标签显示,Dojo AJAX请求大约需要44年才能完成 - Chrome Network Web Developer Tool tab says Dojo AJAX requests are taking around 44 years to complete 为什么 Chrome 开发者工具显示 function is not defined? - Why does Chrome developer tools show function is not defined? 为什么chrome开发者工具中的缓存存储在离线模式下变空了 - Why does the cache storage in chrome developer tool becomes empty in offline mode Web抓取:Chrome开发人员工具可看到html结构,但htmlTreeParse(R)无法看到 - Web scraping: html structure visible with chrome developer tool, but not with htmlTreeParse (R) 为什么Chrome开发者工具/控制台不会显示动态加载的javascript文件/错误? - Why does the Chrome Developer Tools/Console does not show javascript files/error that were loaded dynamically? Chrome Developer Tool中的控制台如何实现? - How does Console in Chrome Developer Tool get implemented? 为什么带有Sourcemap的javascript在Chrome Developer Tools中没有显示为.ts文件? - Why does a javascript with sourcemap not show up as a .ts file in Chrome Developer Tools? 为什么Chrome开发工具将日期__proto__显示为无效日期? - Why does Chrome Dev Tool show a dates __proto__ as Invalid Date?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM