[英]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.