Disable WebSocket connections in Chrome DevTools Network Viewer

I am trying to use the Chrome DevTools Network Viewer to inspect WebSocket frames. I'm not sure if I have encountered a bug or something that I am doing wrong. Essentially, by checking for frames, whenever a new frame is received, the Network Viewer will bounce / cancel the websocket connection. This is especially bad when "ping" messages are sent every 5-10 seconds, as it makes it impossible to keep the frame open.

My Chrome version is 58.0.3029.110 (64-bit)

Steps to reproduce:

  • Press F12 to open DevTools
  • Go to http://www.websocket.org/echo.html
  • Check the box next to "Use secure WebSocket (TLS)" and click "Connect"
  • In DevTools, go to the Network tab and find your web chat connection for chat (wss: //echo.websocket.org/? Encoding = text), select it and view the frames.
  • Click Send on the page to send your message.
  • The web directory element "? Encoding = text" in the network list will be deselected and the frame view is gone.

Any ideas?

enter image description here

+3


source to share


2 answers


I found a workaround that you can use until this error is fixed.

Apply search filter to get the required websocket request as a displayable, now the selected blue bg will be hidden and the frames tab will not be closed.

Useful filters:



  • is: running will show the currently active websocket request.
  • domain: requireddomain.com will filter the required domain

Workaround solution

+4


source


It looks like this is a bug, as others have reported the same issue here .



+1


source







All Articles