After instantiating two APE clients, I noticed some odd behavior when it came to events. After further investigation, it seems that because APE.Client.prototype.eventProxy is part of the prototype, two instances of the client share the same event handlers. I moved the property inside each instance, and it seems to be working fine. Any thoughts?
On Tue, Sep 14, 2010 at 1:57 PM, Felix Filozov <[email protected]> wrote: > Looking further into the source code, I found that load() accepts a set of > parameters. That seems to be a better way to go. > > > On Sun, Sep 12, 2010 at 7:01 AM, Felix Filozov <[email protected]> wrote: > >> What is the recommended way of establishing multiple connections from one >> page? >> >> Is it safe to do the following: >> >> <script type="text/javascript> >> ... >> APE.Config.server = "A"; >> var clientA = new APE.Client(); >> >> APE.Config.server = "B"; >> var clientB = new APE.Client(); >> ... >> </script> >> >> and assume that A and B are such that they would not cause any >> cross-domain errors. >> >> 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/
