How to debug Websockets?

前端 未结 4 1275
情深已故
情深已故 2020-12-23 14:01

I want to monitor the websocket traffic (like to see what version of the protocol the client/server is using) for debugging purposes. How would I go about doing this? Wiresh

4条回答
  •  忘掉有多难
    2020-12-23 14:42

    I think you should use Wireshark

    Steps

    • Open wireshark
    • Go to capture and follow bellow path: capture > interfaces > start capture in your appropriate device.
    • Write rules in filter tcp.dstport == your_websoket_port
    • Hit apply

提交回复
热议问题