you need to distinct pipe A, B by pipe.properties.xxxx, and do something
like this:
client.load({'channel': ['A', 'B'] });
client.addEvent('multiPipeCreate', function(pipe) {
if (pipe.properties.name == 'A') {
pipe.request.send('newRequestForA', {});
} else if (pipe.properties.name == 'B') {
pipe.request.send('newRequestForB', {});
}
}
2011/1/14 Youlin <[email protected]>
> client.load({'channel': ['A', 'B'] });
>
> client.addEvent('multiPipeCreate', function(pipe) {
> pipe.request.send('newRequest', {});
> }
>
> If I joined two channels, A and B, then this will make A and B both
> send the request.
> How can I just use A to send?
>
> --
> 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]<ape-project%[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/
>
--
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/