Files: 8231016cf1abf0fb60c43b11d9ef9dbe69d6e5c0 / tmpl / apis / modules / ssb-msg-schemas.md
847 bytesRaw
ssb-msg-schemas
Functions to create common SSB messages.
var schemas = require('ssb-msg-schemas')
schemas.post(
text,
root /*optional*/,
branch /*optional*/,
mentions /*optional*/,
recps /*optional*/,
channel /*optional*/
)
schemas.name(id, name)
schemas.image(id, imgLink)
schemas.follow(userId)
schemas.unfollow(userId)
schemas.block(userId)
schemas.unblock(userId)
schemas.vote(id, vote, reason /*optional*/)
schemas.pub(id, host, port)
Related docs:
Built with git-ssb-web