Hi!

I just meant that the user will not receive the messages of the
channels he did not join...

I solved the problem now this way: I wrote a function that reacts on
the multiPipeCreate-event and compares the list of created channel
pipes with the dynamic list of channels, the user should join. And the
user joins the missing channels in a function reacting on the
restoreEnd-event.
Works perfect, thanks for the hint!

But I got one more question: Of course the user does not only join
missing channels, but he must also leave channels he should not be in
any more.
Therefore I use the Core.left-method, but this lets me just leave one
channel. Consequently I have 20 requests to the APE-Server when I want
to leave 20 channels, and that's not so good.
Is there any possibility to leave multiple channels at once? Similar
to the join-function which I can give an array of channelnames?

Thanks!
Dominik



On Nov 15, 4:28 am, Anthony Catel <[email protected]> wrote:
> Hi Dominik,
>
> I see several way to do that :
>
> - You can push in a cookie each channel you join. When a sessions
> restoration occur (there is an event on the client-side) just send a
> "left" cmd on these channels.
>
> - Instead of pushing channels into a cookie, you can set them in a
> "server session" 
> :http://ape-project.dev.weelya.net/en/docs/client/core/setsession.html
>
>  >"he has joinedwhen the session was created and therefor does not
> receive all themessages he should receive."
>
> Why do you mean by "not receive all the messages"?
>
> Anthony
>
> Dominik a crit :
>
> > Hi!
>
> > I've created an application which consists of several pages where the
> > user is joining several channels to receive different messages.
> > Unfortunately the channels to join change very often and are
> > determined during page load. But due to the session behaviour of the
> > APE Client Framework the user always joins the channels he has joined
> > when the session was created and therefor does not receive all the
> > messages he should receive.
>
> > A way to fix this issue is to clear the session for each page, so that
> > the user logs in to the APE server every time he opens a page. But
> > this is obviously not a very good solution...
>
> > Is there a way to realize these dynamic channel joins without
> > deactivating the sessions somehow?
>
> > Thanks,
> > Dominik

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