title: Video stream from Blob NodeJS
body: <p>I am recording MediaStream on client side in this way:</p>
  
  <pre><code>handleStream(stream) {
      const ws = new WebSocket('ws://localhost:5432/binary');
      var recorder = new MediaRecorder(stream);
      recorder.ondataavailable = function(event) {
          ws.send(event.data);
      };
      recorder.start();
  }
  </code></pre>
  
  <p>This data are accepted on server side like this:</p>
  
  <pre><code>const wss = new WebSocket.Server({ port: 5432 });
  wss.on('connection', function connection(ws) {
      ws.on('message', function incoming(message) {
          writeToDisk(message, 'video.webm');
      });
  });
  
  function writeToDisk(dataURL, fileName) {
      var fileBuffer = new Buffer(dataURL, 'base64');
      fs.writeFileSync(fileName, fileBuffer);
  }
  </code></pre>
  
  <p>It works like a charm, but I want to take the Buffer and make video live stream served by server side. Is there any way how to do it?</p>
  
  <p>Thanks for your help.</p>