SDK Reference
Methods
SendMessage

sendMessage

Send a message to a specified conversation.

All messages will be automatically encrypted using Lit Protocol based on the conversation's recipients.

How to use?

const res = await orbis.sendMessage(content, data);

Parameters

  • content - object which contains details of the message being sent
    • conversation_id - string (stream) ID of the conversation to which a message will be sent
    • body - string content of the message being sent
  • data - object which contains custom data to be attached to the message

Returns

{
  status: 200,
  doc: "kjzl6cwe1...e4wvxhiqj",
  result: "Success creating TileDocument."
}