I don't have them configured in the config, and even when I added them, it 
still didn't help. My code is simple like this:

var apeServer = null;
var client;

jqcc(document).ready(function () {   
jqcc.getScript('<?php echo $ape_baseurl;?>/clients/javascript.js', 
function() {

// Create the Client
client = new APE.Client; 

// set the directories
APE.Config.baseUrl = '<?php echo $ape_baseurl;?>';
APE.Config.domain = '<?php echo $ape_domain;?>'; 
APE.Config.server = '<?php echo $ape_server;?>';
APE.Config.transport = 2; 

// All the Scripts we need
var ScriptArray = new Array('mootools-core', 'Core/APE', 'Core/Events', 
'Core/Core', 'Pipe/Pipe', 'Pipe/PipeProxy', 'Pipe/PipeMulti', 
'Pipe/PipeSingle', 'Request/Request','Request/Request.Stack', 
'Request/Request.CycledStack', 
'Transport/Transport.longPolling','Transport/Transport.SSE', 
'Transport/Transport.XHRStreaming', 'Transport/Transport.JSONP', 
'Core/Utility', 'Core/JSON');
for (var i = 0; i < ScriptArray.length; i++)
APE.Config.scripts.push(APE.Config.baseUrl + '/Source/' + ScriptArray[i] + 
'.js');

client.load({
'domain': APE.Config.domain,
'server': APE.Config.server,
'identifier': 'jquery',
'complete': function(ape){
apeServer = ape;
ape.start({'name': String((new Date()).getTime()).replace(/\D/gi,'')});
cometready();
},
'scripts': APE.Config.scripts
});
});

});

Later on, when cometready() has done its stuff and got the channel id, then 
the join part is run:

function cometcall_function(id,td,callbackfn) {

apeServer.join(id);
apeServer.addEvent('onRaw', function(args) {
if (args.raw == 'postmsg') {
var incoming = args.data.message;

incoming.message = unescape(incoming.message);

if (callbackfn != '') {
jqcc[callbackfn].newMessage(incoming);
}

var ts = Math.round(new Date().getTime() / 
1000)+''+Math.floor(Math.random()*1000000)
jqcc.cometchat.addMessage(incoming.from, incoming.message, incoming.self, 
0, ts, 0, incoming.sent+td);
}
});
}

As you can see, there's not really much code there! Am I missing something 
obvious? I was using some pretty old examples to learn, has it been updated?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to