1.0.0-alpha.2 • Published 10 years ago
ipfs-event-stream v1.0.0-alpha.2
JS IPFS EventStream
Get a stream of everything happening on your IFPS node
Installation
$ npm i --save ipfs-event-streamUsage
const createEventStream = require('ipfs-event-stream')
const api = getIPFSAPI()
const event$ = createEventStream(api)
event$.subscribe(event => console.log(event))All events emitted have a source property that can be either
diag/sys: Events from an api call todiag/sysdiag/net: Events from an api call todiag/netlog/tail: Events from the log stream