git ssb

2+

cel / scuttlebot.io



Tree: 13691e1ee2bb8b8cec137e18d9f495648fba6793

Files: 13691e1ee2bb8b8cec137e18d9f495648fba6793 / tmpl / apis / modules / ssb-msg-schemas.md

845 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:

View on Github

Built with git-ssb-web