-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue: Stabilizing network inspection in Node.js #53946
Comments
Investigation of WebSocket supportEvents1. Network.webSocketCreatedFired upon WebSocket creation. Can this event be hooked? 🟢 (The
2. Network.webSocketWillSendHandshakeRequestFired when WebSocket is about to initiate handshake. Can this event be hooked? ❌ (No diagnostics channel)
3. Network.webSocketHandshakeResponseReceivedFired when WebSocket handshake response becomes available. Can this event be hooked? ❌ (No diagnostics channel)
4. Network.webSocketFrameSentFired when WebSocket frame is sent. Can this event be hooked? ❌ (No diagnostics channel)
5. Network.webSocketFrameReceivedFired when WebSocket frame is received. Can this event be hooked? ❌ (No diagnostics channel)
6. Network.webSocketFrameErrorFired when WebSocket frame error occurs. Can this event be hooked? ❌ (The
7. Network.webSocketClosedFired when WebSocket is closed. Can this event be hooked? 🟢 (The
Network.WebSocketRequestCollectibility of the following data depends on the implementation of diagnostics channels.
TypesNetwork.WebSocketResponseCollectibility of the following data depends on the implementation of diagnostics channels.
Network.WebSocketFrameCollectibility of the following data depends on the implementation of diagnostics channels.
|
Related issue: nodejs/diagnostics#75
Initial implementation: #53593
This issue is for tracking the remaining work to make network inspection in Node.js stable and to provide a comprehensive debugging experience.
Network inspection features
Basic information
http
https
http2
fetch
WebSocket
Related protocols:
Network.requestWillBeSent
Network.responseReceived
Network.loadingFinished
Network.loadingFailed
Network.webSocketCreated
Network.webSocketClosed
Network.webSocketFrameError
Request details
The details of the request, such as the request body, cookies, and query parameters. The
Network.Request
object is used to represent the request. Some features such asreferrerPolicy
are only available in browser contexts.http
https
http2
fetch
WebSocket
Related protocols:
Network.requestWillBeSent
Network.websocketFrameSent
Network.webSocketWillSendHandshakeRequest
🔍 Response details
The details of the response, such as the response body, and headers. The
Network.Response
object is used to represent the response. Some features such as early hits are only available for browser contexts.http
https
http2
fetch
WebSocket
Caution
We can't consume the response body within the
diagnostics_channel
hook. We need to investigate how to handle the response body. (ref. #53593 (comment))Related protocols:
Network.responseReceived
Network.websocketFrameReceived
Network.webSocketHandshakeResponseReceived
🔍 Request initiator
The initiator of the request, such as the script URL, the line number, and the stack trace. The
Network.Initiator
object is used to represent the initiator.http
https
http2
fetch
WebSocket
Related protocols:
Network.requestWillBeSent
Network.webSocketCreated
🚫 Network conditions and throttling
The network conditions and throttling information of the request and response. The
Network.emulateNetworkConditions
command is used to emulate network conditions.🚫 Security and authentication information
The security and authentication information of the request and response. The
SecurityDetails
object is used to represent the security details.Others
If there are any other features that are not covered by the above categories, please let us know and we will add them to the list.
Node.js specific features
These are network inspection features specific to Node.js applications, including:
These features are not available in the browser context. We plan to support these features in collaboration with the ChromeDevTools team. To move forward with the implementation, we will create a design doc for these features and discuss the specs with the ChromeDevTools team.
Next steps
The text was updated successfully, but these errors were encountered: