i would like to ask how to listen to a specific room extension that i created. here's what i did. im using unity btw.
Code: Select all
RoomSettings settings = new RoomSettings ( details.tableID );
settings.GroupId = "table";
settings.IsGame = true;
settings.MaxUsers = 999;
settings.MaxSpectators = 0;
settings.Extension = new RoomExtension ( EXTENSION_ID, EXTENSION_CLASS );
joinCallback = callback;
sfs.AddEventListener ( SFSEvent.ROOM_JOIN, OnCreateTable );
sfs.AddEventListener ( SFSEvent.ROOM_JOIN_ERROR, OnCreateTableError );
sfs.Send ( new CreateRoomRequest ( settings, true ) );
after successfully creating the room and joined in. i set my listener to
Code: Select all
sfs..AddEventListener ( SFSEvent.EXTENSION_RESPONSE, OnExtensionResponse );
the code seems to work, i can received my extension response but the problem is. when i create multiple Rooms using the first code above.
every room that i created received the ExtensionResponse. i would like to ask how to listen on the Room that i just created and join. thank you.