somata-flyd

0.0.1 • Public • Published

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$

Readme

Keywords

Package Sidebar

Install

npm i somata-flyd

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • spro