_server.sendBuddyListUpdate()
Availability:
SmartFoxServer PRO 1.6.0
Usage:
_server.sendBuddyListUpdate(user)
Description:
Send an update about the specified User to all clients that have him/her in their buddy list.
Normally you don't need to call this method. Updates are sent automatically when needed.
You may need to force an update if you're manipulating the buddy lists without using the regular commands (add, remove, etc...)
For a complete overview of the Buddy List 2.0 system introduced in version 1.6 check this document.
Properties:
| user | a User object that should receive the update |
Returns:
nothing, it will fire and onBuddyListUpdate event on the client side.
Example:
// Send a buddy list update to an existing user _server.sendBuddyListUpdate(user)
See also:
addBuddy(), removeBuddy()