Source Code

These examples can be run directly in the browser or from any client which speaks HTTP.
You can also send data using tools like cURL.


module['exports'] = function mergeStreams (hook) {
  var ms = require('merge-stream');
  var request = require('request');
  var stream1 = request('');
  var stream2 = request('');
  var merged = ms(stream1, stream2);
  // You can also add new streams later
  // merged.add(stream3);
  merged.on('data', function(chunk){
  merged.on('end', function(){

To make your own copy of this service or "Fork" it simply click the button. You will need to register for a Free Account, but it's very quick and easy!