Closed urgent closed 4 years ago
If you change your import to const { DatArchive, destroy } = require('dat-sdk/auto')
you can invoke the destroy()
function to clean up all resources.
This doesn't delete your storage. It just closes all the archives and the swarm
Works great, thank you!
How may I run this code so that the node process ends?
I run it with
node dat.js
, and the process hangs.Thank you!