ExtensionRequest doesn't work

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

Moderators: Lapo, Bax

dimas_art
Posts: 2
Joined: 04 Aug 2012, 09:54

ExtensionRequest doesn't work

Postby dimas_art » 19 Aug 2012, 19:44

Hi every one!

I've tried to send extension request like below:

Code: Select all

connection.addEventListener(SFSEvent.EXTENSION_RESPONSE, onSuccessGetLobbyRoomInfo);
connection.send(new ExtensionRequest("GetLobbyRoom"));


But in logs in Admin Tool I see:

Message: Request handler not found: 'GetLobbyRoom'. Make sure the handler is registered in your extension using addRequestHandler()


But I've added the next lines of codes

Code: Select all

addRequestHandler("GetLobbyRoom", OnGetLobbyRoomInfoHandler.class);


In console I see

[trace] [SFS - INFO] Object going out:
[trace] (short) a: 13
[trace] (sfs_object) p:
[trace] (int) r: -1
[trace] (sfs_object) p:
[trace] (utf_string) c: GetLobbyRoom
[trace] (byte) c: 1
[trace] [SFS - INFO] Data written: Binary Size: 52
[trace] 12 00 03 00 01 61 03 00 0D 00 01 70 12 00 03 00 .....a.....p....
[trace] 01 72 04 FF FF FF FF 00 01 70 12 00 00 00 01 63 .r.......p.....c
[trace] 08 00 0C 47 65 74 4C 6F 62 62 79 52 6F 6F 6D 00 ...GetLobbyRoom.
[trace] 01 63 02 01 .c..

So, could you please help me in this case?
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: ExtensionRequest doesn't work

Postby Lapo » 20 Aug 2012, 09:57

Are you calling a Zone Extension or Room Extension?
If the latter are you sending the roomID too?
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 49 guests