git ssb


2+

cel / ssb-contact



Branch:

cel committed 1.0.0Latest: 264eae3 on 4/20/2017, 10:58:26 PM
📄README.md
📄index.js
📄package.json

ssb-contact

Stuff having to do with "contact" messages in Secure Scuttlebutt.

API

var Contacts = require('ssb-contact')
var contacts = new Contacts(sbot)

contacts.createFollowsStream(id): source

Get a stream of ids of feeds that the given id follows

contacts.createFollowersStream(id): source

Get a stream of ids of feeds that follow the given id

contacts.createFriendsStream(id[, endCb]): source

Get a stream of ids of feeds that have a bidirectional follow with the given id. Optionally, get the remaining relevant ids in a callback.

contacts.createContactStreams(id): object

Get streams of ids that follow the given id, or are followed by it, or both

{
  friends: source,
  follows: source,
  followers: source,
}

Further resources

License

Copyright (c) 2017 Secure Scuttlebutt Consortium

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.


Built with git-ssb-web