Custom handle create Room from admin console

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
tiendao
Posts: 7
Joined: 18 Mar 2017, 06:28

Custom handle create Room from admin console

Postby tiendao » 14 Jul 2017, 04:07

Hello all,

now i having a question about custom room hanler. How can i handle create/add room on server side when this event create from admin web console ?

Any suggestions ? or what's the best way to achieve this task ?

Thanks alot!!!
Tien Dao
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Custom handle create Room from admin console

Postby Lapo » 14 Jul 2017, 07:32

Hello,
ROOM_ADD events are fired also when a Room is created from the Admin Tool.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
tiendao
Posts: 7
Joined: 18 Mar 2017, 06:28

Re: Custom handle create Room from admin console

Postby tiendao » 14 Jul 2017, 11:02

Hello,

i did that but when i break point it not accept stop point
this is my add event handler:

Code: Select all

this.addEventHandler(SFSEventType.ROOM_ADDED, RoomAddEventHandler.class);


and this is method on handler class

Code: Select all

public class RoomAddEventHandler extends BaseServerEventHandler {

   @Override
   public void handleServerEvent(ISFSEvent event) throws SFSException {
      trace("Room added");
   }

}
   

can you tell me know the fixing suggestions to this task ?

Thanks alot,
Tien Dao
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Custom handle create Room from admin console

Postby Lapo » 14 Jul 2017, 14:09

What you have done is correct.
I have tested the scenario you have described and indeed there is no server-side event after the Room is created.

I have added a note in our bug tracking tool to add this in the next update.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
tiendao
Posts: 7
Joined: 18 Mar 2017, 06:28

Re: Custom handle create Room from admin console

Postby tiendao » 15 Jul 2017, 08:06

Hi Lapo,

i'm being eager to waiting next update. the customer is interested use admin tool to creating room i think. and also we need more ROOM_ADD event to custom some handle.

Thanks alot,
Tien Dao

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Edithgal and 40 guests