Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cabal.db.on('ready', function () {
if (starting) cabal.joinChannel('default')
const key = cabal.db.key.toString('hex')
frontend.channel.send(JSON.stringify({type: 'ready', key}))
cabalSwarm(cabal)
cabal.getChannels(sendChannels)
})
}cabal.db.ready(function () {
swarm(cabal)
})
}