addEvent
(since )
Intercept an event
Examples
//Initialize client
client = new APE.Client();
client.load({
'domain': 'yourdomain.com',
'server': 'ape.yourdomain.com',
'baseUrl': 'yourdomain.com/APEJavaScript'
});
//Load event is fired when the client is loaded
client.addEvent('load', function() {
console.log('APE is loaded');
//Ok my client is loaded, now i can send data to my APE server
//Connect to the APE server
client.core.start();
});
//Init event is fired when the client is connected to APE server
client.addEvent('init', function() {
console.log('APE is connected');
});
User notes
# No comment
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...
