Files: 6df421c40b28e10fe7138c1519f7c78ebb52f470 / tmpl / docs / advanced / messages-by-type.md
359 bytesRaw
Messages by type
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
.
Built with git-ssb-web