Files: 254c89b83aef67583e5b1b6f6cd5fdba4fb0b493 / 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