Using npm package version 2.3.31 the following code never fires even though the size event does and queries can be run
r.getPoolMaster().on('healthy', function(healthy) {
if (healthy === true) {
console.log('We can run queries.');
} else {
console.log('No queries can be run.');
}
});
Using npm package version 2.3.31 the following code never fires even though the size event does and queries can be run
r.getPoolMaster().on('healthy', function(healthy) { if (healthy === true) { console.log('We can run queries.'); } else { console.log('No queries can be run.'); } });