- Source:
Methods
(inner) messageHandler(message, messageTypes) → {void}
This function creates messages for the users to see. It accepts a string or a as well as a messageObject. Depending on the messageTypes objectmessageTypes 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:
| Name | Type | Description |
|---|---|---|
message | string | messageObject | The message to be displayed to the user. Can also be a |
messageTypes | messageTypes | An |
- Source:
Throws:
Program Errors
Returns:
- Type
- void