Module: messageHandler

Methods

(inner) messageHandler(message, messageTypes) → {void}

This function creates messages for the users to see. It accepts a string or a messageObject as well as a messageTypes object. Depending on the messageTypes object, this function will create a message in the specified areas.

This function may also clear messages from given channels as well by passing the string "CLEAR" and setting the respective messageTypes.clear attribute to true

Parameters:
NameTypeDescription
messagestring | messageObject

The message to be displayed to the user. Can also be a messageObject.

messageTypesmessageTypes

An object representing the type(s) of messages to handle.

Source:
Throws:

Program Errors

Returns:
Type
void