title: Size of JSON object being sent through Websockets
body: <p>Is there a way of getting the size of JSON being sent through websockets? I'm sending messages of variable length every 20ms and I would like to know their size for optimization purposes.</p>
  
  <p>I've managed to find out the length of the message through the websockets frame tab of the network section in Chrome Developer Tools. Is there something similar where I can view the message size? Or maybe I have to write my own function in javascript?</p>
  
  <p>Thanks for any help...</p>