Skip to content

Create Room Issue #3

@aytanozu

Description

@aytanozu

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":""}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions