git ssb

2+

cel / scuttlebot.io



Tree: 2b3708ff390cc334653a3a9ff0f511f866423af7

Files: 2b3708ff390cc334653a3a9ff0f511f866423af7 / tmpl / docs / advanced / feed-send-time-sort.md

626 bytesRaw

Messages ordered by timestamp

You can fetch all of the messages in your Scuttlebot DB, merged into one stream. To fetch them ordered by the timestamp at time-of-publish, use 'createFeedStream'.

var pull = require('pull-stream')
pull(
  sbot.createFeedStream({ reverse: true }),
  pull.collect(function (err, msgs) { ... })
)
sbot feed --reverse

Important note: message timestamps are set by the wall clock of the publisher, and may be incorrect. The "feed" stream should only be used when order is not important.

→ createFeedStream API

Built with git-ssb-web