code: function sendMessage(messageText) {
      var content = {
        type: chatMessageType,
        root: rootMessageId
      };
  
      if ( !isPublic && (!participants || participants.length === 0) ) {
        console.error("Chatbox: participants array must be configured or the chat must be configured as public.")
        return;
      }
  
      content[chatMessageField] = messageText;
  
      if (isPublic) {
        sbot.publish(content, (err, msg) => {
          if (err) {
            console.log("Error publishing public chat message " + err);
          }
  
        })
      } else {
        sbot.private.publish(content, participants, (err, msg) => {
          if (err) {
            console.log("Error publishing private chat message " + err);
          }
        });
      }
    }
docs: /* Send the message using the configured message type and root message.
  Additionally, link the message to each of the given ids.