onPublicMessage()

Availability:

SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.onPublicMessage(msg <String>, sender <propList>, sourceRoom <integer>)

Description:

The event is fired when a public chat message is received.

Parameters:

msg   the text message
sender   the user propertylist representing the client who sent the message
sourceRoom   the id of the room where the message was originated

Check the User Properties for more info on the objects returned.

Returns:

nothing

Example:

on onPublicMessage me, msg, sender
	put(sender.name & " said: " & msg) 
end

See also: