addBuddy()

Availability:

SmartFoxServer Basic / Pro

Usage:

smartFox.addBuddy(buddyName <String>)

Description:

Adds a buddy to the buddyList.

It will fire a onBuddyList event.

If the buddyList is full a onBuddyListError will be sent by the server.

Parameters:

buddyName     - any non empty string representing the name of the buddy

Returns:

Nothing.

Example:

 smartFox.addBuddy("Lapo")

See also:

onBuddyList(), onBuddyListError(), buddyList, addBuddy(), removeBuddy(), loadBuddyList()