git ssb

2+

mixmix / ticktack



Tree: 1e55478903ee72a0823df4336254a2e7a9da5b0e

Files: 1e55478903ee72a0823df4336254a2e7a9da5b0e / message / async / publish.js

377 bytesRaw
1const nest = require('depnest')
2
3exports.needs = nest({
4 'sbot.async.publish': 'first'
5})
6
7exports.gives = nest('message.async.publish')
8
9exports.create = function (api) {
10 return nest('message.async.publish', (content, cb) => {
11 api.sbot.async.publish(content, (err, data) => {
12 console.log('publish:', err, data)
13
14 cb(err, data)
15 })
16
17 return true
18 })
19}
20

Built with git-ssb-web