1.0.0 • Published 10 years ago
vizier-client-simple v1.0.0
Simple Vizier Client
A (dependency-less) JavaScript-object store for Vizier data.
npm install vizier-client-simple
More complex, full-featured clients may be implemented in the future. The wire protocol is extremely simple, feel free to read the code and write custom clients to store data in the necessary stores for your application.
Usage
import Sink from 'vizier-client-simple';
# Instantiate a sink.
let sink = new Sink();
# Submit updates to the sink.
network.on('update-from-vizier', (update) => sink.submit(update));
# Retrieve realtime table data from the sink.
console.log(`my_table has ${Object.keys(sink.get('my_table')).length} items.`);
1.0.0
10 years ago