This package has been deprecated

Author message:

renamed to ssb-subset-rpc

ssb-meta-feeds-rpc

0.2.0 • Public • Published

SSB meta feeds RPC

A secret stack plugin adding meta feeds subset replication related RPCs.

Requires the ssb-meta-feeds module loaded as a secret stack plugin.

Implements the spec

API

getSubset

examples:

pull(
  sbot.getSubset({
    op: 'and',
    args: [
      { op: 'type', string: 'post' },
      { op: 'author', feed: '@6CAxOI3f+LUOVrbAl0IemqiS7ATpQvr9Mdw9LC4+Uv0=.ed25519' }
    ]
  }),
  pull.collect((err, results) => {
    console.logs("posts for arj", results)
  })
)

pull(
  sbot.getSubset({
    op: 'and',
    args: [
      { op: 'type', string: 'post' },
      { op: 'author', feed: '@6CAxOI3f+LUOVrbAl0IemqiS7ATpQvr9Mdw9LC4+Uv0=.ed25519' }
    ]
  }, {
    descending: true,
    pageSize: 10
  }),
  pull.collect((err, results) => {
    console.logs("latest 10 posts for arj", results)
  })
)

resolveIndexFeed

pull(
  sbot.resolveIndexFeed(indexFeedId),
  pull.collect((err, results) => {
    console.logs("index feed and the indexed messages", results)
    // [{ msg: indexMsg, indexed: contactMsg }, ...]
  })
)

Readme

Keywords

none

Package Sidebar

Install

npm i ssb-meta-feeds-rpc

Weekly Downloads

1

Version

0.2.0

License

LGPL-3.0

Unpacked Size

14.4 kB

Total Files

4

Last publish

Collaborators

  • staltz