Hey!
Does anyone know if I can call a Meteor method which returns a stream, instead of just returning once?
I’m using the Noble.js NPM package via the meteorhacks:npm package to scan for Bluetooth peripherals, and the noble.on(‘discover’, callback) is a callback that outputs a stream of data whenever it finds new peripherals:
[image: http://i.imgur.com/UDZ0RfB.png]
Now to the real question: how do I return that stream to the client? I’ve tried using Fibers/Future, returning directly from within the noble.on() callback, etc., but either nothing shows up, or Meteor crashes (maximum callstack).
Any ideas?