Is there a way, or an extension, that lets me watch the "traffic" going through a WebSocket? For debugging purposes I'd like to see the client and server requests/responses.
Google-chrome – Debugging WebSocket in Google Chrome
google-chromewebsocket
Related Topic
- Google-chrome – Disabling Chrome cache for website development
- Google-chrome – Getting Chrome to accept self-signed localhost certificate
- Node.js – Differences between socket.io and websockets
- Php – What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet
- Html – Disabling Chrome Autofill
- Html – Hide scroll bar, but while still being able to scroll
Best Answer
Chrome developer tools now have the ability to list WebSocket frames and also inspect the data if the frames are not binary.
Process:
If your WebSocket connection uses binary frames then you will probably still want to use Wireshark to debug the connection. Wireshark 1.8.0 added dissector and filtering support for WebSockets. An alternative may be found in this other answer.