Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view Web socket response in browser?

I am using Google Chrome version 24

I am viewing a website where the data is being fetched to the front end by websocket call.

My question is, "Is it possible to view the web socket response from the browser?" Are there any such tools?

Please let me know, thanks in advance.

like image 787
Pawan Avatar asked Oct 05 '22 16:10

Pawan


1 Answers

Yes this is possible. Look at the Network pane in Dev Tools and look for the line that says Switching Protocols

The caveat is you need to close and reload the detail pane as it does not auto-refresh (as of Chrome 25)

Possible duplicate: Debugging WebSocket in Google Chrome (though definitely dated information, much has changed since those answers were posted)

This is pretty close to 'up-to-date' information as of (2013-03-20) http://codetheory.in/websocket-traffic-inspection-in-chrome-developer-tools/

like image 74
BLSully Avatar answered Oct 13 '22 11:10

BLSully