How to use the cabal-core/swarm.js function in cabal-core

To help you get started, we’ve selected a few cabal-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cabal-club / cabal-mobile / nodejs-assets / nodejs-project / main.js View on Github external
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)
  })
}
github cabal-club / cabal-client / index.js View on Github external
cabal.db.ready(function () {
      swarm(cabal)
    })
  }

cabal-core

p2p db functions for chat

AGPL-3.0
Latest version published 9 months ago

Package Health Score

56 / 100
Full package analysis