packages/ddp-client/stub_stream.js
function (data) {
    var self = this;

    if (typeof data === 'object') {
      data = EJSON.stringify(data);
    }

    _.each(self.callbacks['message'], function (cb) {
      cb(data);
    });
  }
function (data) {
    var self = this;

    if (typeof data === 'object') {
      data = EJSON.stringify(data);
    }

    _.each(self.callbacks['message'], function (cb) {
      cb(data);
    });
  }
function ( data ) { var self = this ; if ( typeof data === 'object' ) { data = EJSON . stringify ( data ) ; } _ . each ( self . callbacks [ 'message' ] , function ( cb ) { cb ( data ) ; } ) ; }
Methods for tests
Methods for tests