Integrating AbortController support
antoniomuso opened this issue · comments
It can be cool to integrate the AbortController in the TCP environment. See options. We can try a POC in a PR.
Use example:
const controller = new AbortController();
const signal = controller.signal;
new Dats({..., signal })
.
.
.
process.on('exit', () => {
controller.abort()
});
This is a Node 16 feature; we cannot add it until we support Node 12 and 14.