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?