I'd like write a test to measure the size/amount of data being sent from a node.js server via websockets but I am not sure how to go about it. The messages are in JSON. Is there a way of measuring JSON size or any module that could help?
I'm sending a lot of data frequently and would like to measure the data throughput per second.
Thanks in advance...
I've found that the best way to do this is with a protocol analyser like WireShark.