title: Measuring size of websockets data input/output in javascript
body: <p>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?</p>
  
  <p>I'm sending a lot of data frequently and would like to measure the data throughput per second.</p>
  
  <p>Thanks in advance...</p>