Giter VIP home page Giter VIP logo

ssb-party's Introduction

ssb-party

Get a scuttlebot client instance. If scuttlebot isn't running, start it in the background, and keep it running until all the clients have disconnected.

Usage

var createSsbParty = require('ssb-party')

createSsbParty([opts, ]cb)

  • opts.keys: an ssb-keys instance. default loads from ~/.ssb/secret
  • opts.host: host to connect to or start the server on. default "localhost"
  • opts.port: port to connect to or start the server on. default 8008
  • opts.appKey: secret-stack capability key (Buffer). default sbot's appKey

Other properties of the opts object will be used as ssb-config overrides, but if the server is already running, these will not affect the existing server's config.

Example

simplest case: connect to or start a local sbot:

var party = require('ssb-party')

party(function (err, sbot) {
  // ...
})

Config

  • config.timers.keepalive: minimum time (ms) to keep the server online after the last client disconnects. default: 30s
  • config.party.out: where to put standard output of sbot. may be a path (absolute, or relative to ssb's directory), or false to discard, or true to pass through to the controlling terminal. default: true
  • config.party.err: where to put standard error of sbot. default: same as config.party.out

License

Copyright (c) 2017 @cel

Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.

DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

ssb-party's People

Contributors

regular avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.