hi,

Le 17/03/2010 02:05, Perrin Perrin a écrit :
Timo:

Here is a simple working example of a wrapped channel.

http://paste.mootools.net/f3b1ca93


Your working example follows what I called 'workaround 2', and represents the 'crappiest' way to do the job in terms of scalability, because if you have 1000 instances, at each 'join' or 'left' event fired by the server, you'll call at least 999 times a callback function that won't do anything except wasting time.

The solution of Timo looks far better imho: using a singleton will need only one 'APE global event' for all instances (and not one for each instance) ; and only 1 callback call will be done for each 'join' or 'left' event fired by the server.

Regards,

Nouk²

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