@zapjs/subscriber

Zap Subscriber

Usage no npm install needed!

<script type="module">
  import zapjsSubscriber from 'https://cdn.skypack.dev/@zapjs/subscriber';
</script>

README

@zapjs/subscriber

This repository provides wrapper classes for data subscribers subscribers to interface with Zap providers.

Getting Started

Prerequisites

What things you need to install the software and how to install them

- Node 12.20 <=14.15
- Typescript

Installing

npm install @zapjs/subscriber

Usage

Create a Zap Susbcriber and interact with Provider
import {ZapSubscriber} from '@zapjs/subscriber';
let myZapSubscriber = new ZapSubscriber({owner:address})

With Custom configuration

let myZapSubscriber = new myZapSubscriber(owner,{networkId,networkProvider,coordinator});

Methods

await myZapSubscriber.bond({provider, endpoint, zapNum})
await myZapSuscriber.unBond({provider, endpoint, dots})
await myZapSubscriber.subscribe({provider, endpoint, endpointParams, dots})  

See more Usages of each packages :