Open rik-iso opened 4 months ago
Ok looks like adding
service.on('error', (er) => {
console.log(er)
})
i.e. handling the error somehow fixes it. I guess this is an eventemitter2 thing. Would be worth documenting as the example in the README doesn't work to retry like it implies it does.
I'm trying to make the code resilient to a Aurora RDS failover (which interrupts the connection to the master). I'm wrapping my
await service.subscribe(plugin, REPLICATION_SLOT_NAME)
in a try/catch, but when I fail over the whole process just ends:This occurs if I use the example code in the README too.