You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alvin Cheng edited this page Mar 8, 2023
·
1 revision
Description
This is the on message command, this command is used to listen to for messages and will return the message content to the function. This command will require 2 parameters, the first command is for the room to listen messages in, and the second argument is for the function of the listener. The listener will also require a message parameter for the message sent.
Example
function $FUNC_ON_MESSAGE $OBJ_MESSAGE ();
on_message "<ROOM>" $FUNC_ON_MESSAGE;