I´m using SmartFoxServer 1.6.6 Trial (I´ll buy a license if it suits what I need
In my smartfoxserver connect 16 clients that send data from a socket every 10 seconds and I have the problem that the smartfoxserver disconnects these clients (kick them).
I turned off the AntiFlood and the BadWordsFilter and I set the DroppedPackets in this way:
Code: Select all
<ClientMessagQueue>
<QueueSize>60</QueueSize>
<MaxAllowedDroppedPackets>1000</MaxAllowedDroppedPackets></ClientMessagQueue>
Code: Select all
function onJoinRoom(evt:SFSEvent):void
{
var room:Room = sfs.getActiveRoom();
txtU.text = "Equipos conectados: " + room.getUserCount();
var aux:Array = room.getUserList();
var miUser:User;
for (var i in aux)
{
var user:User = aux[i];
user.setModerator(true);
var variablesUsu:Array = user.getVariables();
if (user.getName() == sfs.myUserName) {
miUser = user;
miUser.setModerator(true);
}
}
}
How can I log users as moderators in AS3 that work?
Thanks in advance and sorry about my English.