zrx

A reactive client for Zetta.

Usage no npm install needed!

<script type="module">
  import zrx from 'https://cdn.skypack.dev/zrx';
</script>

README

zrx

Install

npm install zrx

Example

var zrx = require('./zrx');
 
zrx()
  .load('http://zetta-cloud-2.herokuapp.com')
  .server('Detroit')
  .device(function(d) {
    return d.type === 'display';
  })
  .toDevice()
  .subscribe(function(device) {
    console.log(device.message);
  });

License

MIT