到目前为止,Wireshark 仅显示捕获的 TCP 有效负载中的原始字节。我希望看到一些结构化的 NATS 消息:CONNECT、SUBSCRIBE、PUBLISH 等。有 Wireshark 插件吗?或者也许我可以使用另一个嗅探器?
问问题
175 次
1 回答
0
NATS uses ASCII text. You can just right click a message on the top panel, select Follow->>TCP Stream. It will show a pop up window similar as this:
INFO {"server_id":"NBJQ7WOATUJACQOLGFHQWXIZHYSSTR5ACGUPKRUUURQVJJ5YZ7GG4KO7","server_name":"NBJQ7WOATUJACQOLGFHQWXIZHYSSTR5ACGUPKRUUURQVJJ5YZ7GG4KO7","version":"2.1.6","proto":1,"git_commit":"8c8d6f8","go":"go1.13.9","host":"0.0.0.0","port":4222,"max_payload":1048576,"client_id":3,"client_ip":"10.2.125.91"}
CONNECT {"verbose":false,"pedantic":false,"tls_required":false,"name":"","lang":"C","version":"2.1.0","protocol":1,"echo":true}
PING
PONG
SUB _INBOX.DJA876I7XYOOISPLX6J5E1.* 1
PUB help _INBOX.DJA876I7XYOOISPLX6J5E1.0 9
help here
The only downside is that it only shows one TCP connection at a time. You can list all the TCP connections through: Menu: Statistics->>Conversations and select TCP tab.
于 2020-05-18T00:06:37.033 回答