-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi as3 sdk has not been updated for years.
properties appear empty when I create a room with a property.
need to fix it with updateRoomProperties api a second time.
please help me update sdk thank you
public static function baglan(callback:Function):void
{
if(inited == false)
{
WarpClient.enableTrace(true);
WarpClient.initialize(Config.apiKey,Config.secretKey);
WarpClient.setRecoveryAllowance(120);
client = WarpClient.getInstance();
inited = true;
}
if(connected == false)
{
client.setConnectionRequestListener(new ConnectionListener(callback));
client.connect(User.instance.username);
}else{
callback(ResultCode.success);
}
}
//on Connect
private function connect(r:int):void
{
if(r == ResultCode.success)
{
text.text = "Oyuncular Aranıyor..";
Client.client.setRoomRequestListener(new RoomListener(roomCallback));
Client.client.setZoneRequestListener(new ZoneListener(new Function()));
Client.client.setNotificationListener(new NotifyListener(notifyCallback));
var a:Object = new Object();
a.sahip = "metin";
a.level = 5;
a.puan = 200;
a.aktif = true;
Client.client.createRoom("denemetin","ahmet",3,a);
}else{
text.text = "Bağlantı Başarısız";
}
}
i get this from room listener and zone lsitener
onCreateRoomDone {"owner":"ahmet","maxUsers":3,"roomId":"1183920214","result":0,"name":"denemetin"}
onGetLiveRoomInfoDone {"room":{"owner":"ahmet","maxUsers":3,"roomId":"1183920214","result":0,"name":"denemetin"},"users":[],"properties":{},"result":0,"customData":""}