Skip to content

Instantly share code, notes, and snippets.

@dcloud
dcloud / how_to_use_wireshark_with_nodejs.md
Last active March 14, 2024 15:40 — forked from dfrankland/how_to_use_wireshark_with_nodejs.md
How to use Wireshark with Node.js (especially with HTTPS / TLS / SSL)

How to use Wireshark with Node.js (especially with HTTPS / TLS / SSL)

It can be difficult to trace network traffic from a Node.js application. Typically, folks will just instrument some logging to check that everything is working as it is supposed to. Unfortunately, sometimes there are too many abstractions or possible race conditions to accurately get a good trace. To get the most objective possible trace of network traffic Wireshark can be used.

Wireshark is a network protocol analyzer that makes it extremely simple to capture and trace network activity from any source on your computer. It also has