sendPrivateMessage()
Availability:
Flash Player 7, 8
SmartFoxServer Lite / Basic / Pro
Usage:
smartFox.sendPrivateMessage(msg:String, userId:Number, roomId:Number)
Description:
Sends a private chat message to a user.
Parameters:
msg | A string with the text of the message | |
userId | The user Id of the client that will receive the message | |
roomId | (optional) the id of the source room, if you are allowing users to join multiple rooms |
Returns:
Fires the onPrivateMessage event
Example:
smartFox.sendPrivateMessage("Hey there!", 22)
See also:
onPrivateMessage, sendPublicMessage()