title: Streaming data over WebSocket
body: <p>I have the following setup: a Javascript client establish a WebSocket and send big loads of data over it. The data are presented as a string that can be several hundred Mo big. At the moment I cut the string in chunck of 16ko(totally arbitrary size) and send the chunk one after one :</p>
  <pre><code>chunk_size = 16384;
  step = Math.floor(content.length/chunk_size);
  for(i=0; i&lt;step; i++){
    ws.send(content.substring(chunk_size*i, chunk_size*(i+1)));
  }
  </code></pre>
  <p>My question concerns the Best Practice for that. Is this the correct  way to stream data, how are the streaming library usually implemented ?</p>
  <p>or should I just send the all data load at once and let the WebSocket handle the streaming ?</p>