helper.postPacketToPlayer
Prototype
postPacketToPlayer(packettype, playername, data)
Input parameters
packettype - the type of the packet, should be positive integer
playername - the user name of the player to send the packet to
data - the data associated with the packet (associative array)
Return value
null
Description
Posts a data packet to a specific player.
Example code
var packData = {"question":question, "playerInfos":playerInfos,
"round":g_gameState.round};
postPacketToPlayer(PACK_QUESTION, player, packData);
