somata-flyd
v0.0.1
Published
Wrap Somata service events in a Flyd stream
Downloads
2
Readme
somata-flyd
Wrap Somata service events in a Flyd stream
Usage
somata = require 'somata-flyd'
flyd = require 'flyd'
client = new somata.Client
motion$ = client.on('maia:smartthings', 'motion')
gotMotion = (e) -> console.log '[motion event]', e
flyd.on gotMotion, motion$