enyo.amf.init('amfphp', 'http://emilkm.hp.am.cf/server/amf.php'); console.log('invoking testing service ping operation'); var amfx = new enyo.Amfx({source: 'test', operation: 'ping'}) .response(this, function(inSender, inResponse) { if (inResponse.data === 'pong') { console.log('ping-pong request success'); } else { console.log('pong expected, but server returned: ' + inResponse.data); } }) .error(this, function(inSender, inResponse) { console.log('ping-pong request failed'); }) .go();
There was an error while loading. Please reload this page.