Hi,
I am trying to get the HASH_DATA example in the APE docs to work. The
command code is copied from the docs as it is and the js file is
included in main.ape.js. On the client side, in the call back of the
clientReady event , the user is made to join the "commonChannel" which
is of multipipe type.
this.core.join(this.commonCh);
in the multipipeCreate callback, the request is sent if its the
commonChannel
pipe.request.send('SEND_HASH', {month: 'july'});
In the initEvents, the following code is added to receive the raw
this.onRaw('HASH_DATA', function(raw, pipe) {
//alert(raw.data.month); // raw.data is the hash we sent
previously!
console.log(raw);
});
when the response is received, I can see the HASH_DATA in the format
in firebug console.
{"time":"1274852824","raw":"HASH_DATA","data":
{"month":"july","pipe":"5aa6e379d82dda08a57d44ed9065cab7"}}
but the raw is empty as console.log(raw) ; shows an empty object. Am I
doing anything wrong here ?
Thanks and regards ,
Vineet
--
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/