参考
Chrome developer tools now have the ability to list WebSocket frames and also inspect the data if the frames are not binary.
Process:
- Launch Chrome Developer tools
- Load your page and initiate the WebSocket connections
- Click the Network Tab.
- Select the WebSocket connection from the list on the left (it will have status of "101 Switching Protocols".
- Click the Frames sub-tab. Binary frames will show up with a length and time-stamp and indicate whether they are masked. Text frames will show also include the payload content.