SendMessage

message sent in a channel

interface SendMessage {
  data: string | Object;
  files?: FileList | FileInfo[];
  replyTo?: string;
}

index

properties

Properties

data

data to send, can be either a string or a js object that can be turned to JSON

if a string is provided a simple text message is created and if an object is provided a data message is created

string | Object

files ?

files

if file upload is enabled for your instance use this to link files messages, FileList will upload the files first, file info provides your custom external files

FileList | FileInfo[]

replyTo ?

message id to reply to

string