My goal is to connect to a website using PhantomJS and print incoming network traffic to an output file in HAR format.
Using the netsniff.js example, I can record all network traffic when first loading a site but I do not know how to capture further incoming traffic.
For example if you go to the front page of stack exchange, the stack sites will intermittently change and a new .png file will be received (this can be seen by looking in the network tab of Chrome developer tools or something similar for other browsers). I would like a way of capturing the HAR for all of these indefinitely. How is this possible?