How to use the ssb-config.keys function in ssb-config

To help you get started, we’ve selected a few ssb-config 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 stripedpajamas / scat / util / client / index.js View on Github external
const tryConnect = (cb) => {
  retriesRemaining--
  // Check if sbot/scutlle-shell is already running
  client(config.keys, config, (err, sbot) => {
    // err implies no server currently running
    if (err) {
      // start scuttle shell if haven't already tried starting it
      if (!started) {
        server = child.fork(path.resolve(__dirname, './start'), {
          stdio: [
            'ignore',
            'ignore',
            'ignore',
            'ipc'
          ]
        })
        server.send({ config })
        started = true
      }
    }

ssb-config

load ssb config

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis