Hi there.
What is the recommended way to close changeStreams in Node.js when the process is killed?
Do we even have to call close()
on the changeStream - and if yes, should it be done using process.on(‘SIGINT’) or process.on(‘beforeExit’)?
Hi there.
What is the recommended way to close changeStreams in Node.js when the process is killed?
Do we even have to call close()
on the changeStream - and if yes, should it be done using process.on(‘SIGINT’) or process.on(‘beforeExit’)?