git ssb

2+

cel / scuttlebot.io



Tree: 050bf3027d942b17105d8ce27e3298cbf67502e8

Files: 050bf3027d942b17105d8ce27e3298cbf67502e8 / tmpl / docs / basics / open-a-client.md

455 bytesRaw

Open an API client

If youre using Scuttlebot from a JS application, you will need to open a client connection.

If you're using the command-line, you can <a href="./publish-a-message.html">skip this step.</a>

var ssbClient = require('ssb-client')
ssbClient(function (err, sbot) {
  if (err)
    throw err

  // sbot is now ready. when done:
  sbot.close()
})

Currently, Scuttlebot's API client is only available for node.js applications.

Built with git-ssb-web