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]
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/

Reply via email to