1.3.3 • Published 2 years ago
ion-streamer v1.3.3
ION-STREAMER
to produce and consume redis streams in non-blocking manner. ION-Streamer listens to streams in subprocess.
example usage
const StreamManager = require('ion-streamer');
const sm = new StreamManager({prefix: "SL", url: "redis://127.0.0.1:6379"});
/** create consumer **/
const StreamManager = require('./index.js');
const sm = new StreamManager({prefix: "SL", url: "redis://127.0.0.1:6379"});
const consumer = sm.consumer({
key: 'konafa',
block: 0,
keepAlive: true,
onMessage: (d)=>{console.log(`got message`, d)},
onError: (d)=>{console.log(`got error`, d)},
onClose: ()=>{console.log(`got close`)},
})
const producer = sm.producer();
setInterval(()=>{
producer.emit({key:'konafa', data: {mxg:'1'}});
}, 100);
setTimeout(()=>{consumer.close()}, 7000)
2.0.0
2 years ago
1.3.3
2 years ago
1.3.2
2 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.9
3 years ago
1.2.8
3 years ago
1.2.7
3 years ago
1.2.6
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago