title: Websocket base64, binarytype
body: <p>I'm very confused. I'm trying to understand how Websockets work and have build a server in node.js and a client side.
  What I couldn't understand is, how Websocket sends data.
  Is the data base64 encoded before sending from client (browser) ?
  How is 'binarytype' working ? Only for receiving ?</p>
  
  <p>And do I have to implement these on server, too ?
  Do I need a 'binarytype' option on server side ?</p>
  
  <p>When do I need blob and arraybuffer ? Depending on small and big data ?
  What is if get get videos and audio files ?</p>
  
  <p>I had a look on how pictures should be sent on web and I found 
  very often the solution, that the picture is base64 encoded and send after that.
  But if Websocket API in Browser already encode binary files to base64, I wouldn't have to do this..</p>
  
  <p>Sorry, I'm very confused and hope somebody can help me</p>