Messages by type
Sometimes it's helpful to get all messages of a certain type. For this, you can use 'messagesByType':
bash
js
sbot logt --type post
var pull = require('pull-stream')
pull(
sbot.messagesByType({ type: 'post' }),
pull.collect(function (err, msgs) { ... })
)
The ordering in messagesByType
will be the same as the ordering in createLogStream
.