When you join a channel, a "multiPipeCreate" event is dispatched and a reference to the pipe is passed to the event handler. Once you have a reference to the multipipe, you can call the left() method on it.
See http://www.ape-project.org/docs/client/multi-pipe/left.html If you really need to get the pubid of the pipe, then you should be able to get to it by calling multipipe_reference.pipe.pubid. See http://www.ape-project.org/docs/client/pipe/ On Tue, Oct 19, 2010 at 12:45 PM, Doug Molineux <[email protected]> wrote: > Hi everyone, > > When I first load the page, I am listening to one Channel. If a user > clicks on a "Realtime" button then it joins a second different > channel. I join this by executing this command in my included js > file: > > client.core.join(channel) > > If they push the realtime button again I want them to leave the second > channel but not the first one. Is this possible? I have tried a simple > command like this: > > client.core.left(channel) > > Which doesn't do anything. Upon reading the documentation for left, I > have found that on the left function requires a "PUBID" instead of the > channel name. So I suppose my question is when I join the channel, is > there a way to return the pubid so that I can use that to leave it > later? Any advice would be helpful, > > Thanks! > > -- > 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/
