providers/nodebb/chat.js
function sendChat(roomId, content) {
        return retryAction(() => forum._emit('modules.chats.send', {
            roomId: roomId,
            message: content
        }), 5);
    }
function sendChat(roomId, content) {
        return retryAction(() => forum._emit('modules.chats.send', {
            roomId: roomId,
            message: content
        }), 5);
    }
function sendChat ( roomId , content ) { return retryAction ( ( ) => forum . _emit ( 'modules.chats.send' , { roomId : roomId , message : content } ) , 5 ) ; }
Send a message to the chatroom

@public

@param {number} roomId Chatroom to speak to
@param {string} content Message to send to the chatroom
@returns {Promise} Resolves when message has been sent
Send a message to the chatroom