Events interface.
Subscribe to events using on and unsubscribe using off, alternatively you can use addListener and removeListener.
on
off
addListener
removeListener
program.fileSystem.on("local-change", ({ path, root }) => { console.log("The file system has changed locally 🔔") console.log("Changed path:", path) console.log("New data root CID:", root)})program.fileSystem.off("publish")
Generated using TypeDoc
Events interface.
Subscribe to events using
on
and unsubscribe usingoff
, alternatively you can useaddListener
andremoveListener
.