Extension Not Being Called?
Posted: 10 Jan 2011, 19:27
As the title says, I'm having a problem with my extension not being called. On the client, it is saying it sends an extension message, but the server does nothing after that.
That's all the coding up to the first trace statement, which isn't being called.
On the client I have this output when I try to call the extension:
Thanks for the help in advance.
Code: Select all
function handleRequest(cmd, params, user, fromRoom) {
var dbase = _server.getDatabaseManager();
if (cmd == "register") {
var response = {};
var error = "";
var username = params.username;
var password = params.password;
var email = params.email;
trace("Vars");On the client I have this output when I try to call the extension:
The extension has been started, as I can see from the server when it starts:[Sending]: <msg t='xt'><body action='xtReq' r='-1'><![CDATA[<dataObj><var n='name' t='s'>registerExt</var><var n='cmd' t='s'>register</var></dataObj>]]></body></msg>
Does anyone know what the problem is?[registerExt.as]: Internal event receieved: serverReady
Thanks for the help in advance.