Please close After reviewing the skiff code I see that a call to skiff.levelup() creates a new levelup instance so my event listener was listening on a different instance
Playing around with skiff (using memdown) and I am attempting to get levelup put/del events from a 3 node skiff cluster. i have 1 node making a put request after the leader has been elected and i can see that the data is written. All 3 nodes run the same code on different ports in separate processes with the exception of node 3 calling a put after 2 seconds
pertinent code is
const db = skiff.levelup()
db.on('put', console.log)
I get no console output on any of the 3 nodes. Is there a way to achieve this?
Please close After reviewing the skiff code I see that a call to
skiff.levelup()
creates a new levelup instance so my event listener was listening on a different instancePlaying around with skiff (using memdown) and I am attempting to get levelup put/del events from a 3 node skiff cluster. i have 1 node making a put request after the leader has been elected and i can see that the data is written. All 3 nodes run the same code on different ports in separate processes with the exception of node 3 calling a put after 2 seconds
pertinent code is
I get no console output on any of the 3 nodes. Is there a way to achieve this?
Full code below
peer-list.js
node.js
node0.js
node1.js
node2.js