Hi,
i'am assuming you are receiveing the data on the client side with
pipe.onRaw();
On the server side you can send data on a pipe like this :
pipe.sendRaw('HASH_DATA', {'pipe': pipe.toObject(), 'from':
info.user.pipe, 'otherParam': 'foo'});
Regards.
On 06/06/2010 15:00, Manas B wrote:
Hi there,
This is working, I do not know How but it is working. What i did is to
construct the whole payload as we recieve in the send/data
pipe.sendRaw('HASH_DATA', {"id":params.id, "username":params.username,
"from":
{"casttype":"uni","pubid":info.user.getProperty('pubid'),"properties":
{"name":info.user.getProperty('name')}},"pipe":
{"casttype":"multi","pubid":params.pipe,"properties":
{"name":"testChannel"}}});
Can any one help me understand why this is working or is there any
elegent way of doing it rather than making the whole payload.
thanx
On Jun 6, 5:02 pm, Manas B<[email protected]> wrote:
Hi there,
I m trying to send a custom command in Ape. The example
herehttp://www.ape-project.org/wiki/index.php/How_to_send_hashes_rather_s...
has been on some help though it appears to be outdated.
I m able to send the data to the server and also retrieve the params
at server end.
The server is also able to write to the client that I can see in
firefox.
My problem is I am not able to retrive the raw
This is the request I am sendign at client end
currentPipe.request.send('SEND_HASH',{'username':username, 'id':id});
And here at Server side I am using this
var pipe = Ape.getPipe(params.pipe);
if (!$defined(pipe)) return ["4400", "PIPE_UNDEFINED"];
pipe.sendRaw('HASH_DATA', params);
Thanx
--
Nicolas Trani - Web engineer
Weelya - Improve the web
32 rue du faubourg boutonnet
34090 Montpellier
http://www.weelya.com
http://www.ape-project.org
--
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/