Hi Dominik,
If you use APE 1.0, just use this.core.request.cycledStack.send
("cmdname", {params})
This will put your command into a stack that is pushed to the server
every 200ms (this time can be tunned), so that if you send multiple
request in a short time, they are packaged into 1 request.
If you want to join multiple channel at once, just put an array
instead of a string. ["channel1", "channel2"].
Our documentation is almost ready ;)
Anthony
On Oct 29, 2:26 am, Dominik <[email protected]> wrote:
> Hi!
>
> Sorry, I think I have to be a bit more concrete...
>
> I built a javascript class on client side, called APE.Test, which is a
> subclass of APE.Client. On page loading I create three instances of
> this class, each of them joins another channel (by calling the load-
> function with different channel-parameters).
> So of course the client browser opens three requests at a time,
> because I have three APE.Client-instances...
>
> So, I think, the better question is: how can I call the load-
> function / instantiate an APE.Client with more than one channel it
> should join??
>
> Thanks!
> Dominik
>
> On Oct 29, 2:20 am, Dominik <[email protected]> wrote:
>
> > Hi folks!
>
> > Thanks for your help so far, with your answers I was able to build a
> > prototype application with APE :).
> > I have one question:
>
> > I am using several channels and during the client page load process
> > the user joins multiple channels. Each of the channels has of course
> > an own pipe, which is used to send data to all users who joined the
> > channel.
> > All that works nice and all the users get the messages of the channels
> > they joined to.
> > But there is one fact that I do not like: The browser sends so many
> > parallel requests like the number of channels the user joined to. So,
> > for example, when an user joins 3 channels, the browser has to manage
> > three parallel requests to the ape server.
> > Is there a possibility to use several channels / pipes, but manage
> > them on the client side by just one single request to the ape server?
>
> > Thanks for your help!
>
> > 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/