git ssb

2+

cel / scuttlebot.io



Tree: 758e433b7c3d4c10d3f23bafb07b64262514e96f

Files: 758e433b7c3d4c10d3f23bafb07b64262514e96f / tmpl / docs / advanced / messages-by-type.md

462 bytesRaw

Messages by type

Sometimes it's helpful to get all messages of a certain type. For this, you can use 'messagesByType':

var pull = require('pull-stream')
pull(
  sbot.messagesByType({ type: 'post' }),
  pull.collect(function (err, msgs) { ... })
)
sbot logt --type post

The ordering in messagesByType will be the same as the ordering in createLogStream.

→ messagesByType API

Built with git-ssb-web