-
Notifications
You must be signed in to change notification settings - Fork 0
Basic Example
emilkm edited this page Jun 16, 2013
·
1 revision
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();