Hi!
Thanks a lot!!!I wasn´t even thinking of making a channel wrapper do get this 
done, but desperately trying to get control of the "real"channel construction. 
;o)
Thanks again.
Timo  


--- Perrin Perrin <[email protected]> schrieb am Mi, 17.3.2010:

Von: Perrin Perrin <[email protected]>
Betreff: Re: [APE Project] 'join' and 'left' events for one specific channel ?
An: [email protected]
Datum: Mittwoch, 17. März, 2010 02:05 Uhr

Timo:

Here is a simple working example of a wrapped channel.

http://paste.mootools.net/f3b1ca93

--Perrin
CrypticSwarm



On Tue, Mar 16, 2010 at 10:38 AM, Timo Michna <[email protected]> wrote:


Hi Anthony!

- http://mootools.net/docs/core/Native/Event <== 
extend channel/users 
with this class
- wrapping around generics 
events (Ape.addEvent("onJoin") => MooTools 
fireEvent()...
I
 would be greatful if anyone find the time to work on this ;)

Could you, please, give some more hints on how to do this.
I´d love to do an implementation for this feature, but I just can find
no place to start.


My problems:
channels can only be created by the proxy function "mkChan", while
users cannot be created directly anyhow (afaik). 
So both of them have no constructor function in JS, but are created 

in the C core. So there is no way of extending channel or user with 
the Mootools Event class. It works for pipes since there is a JS constructor
available ("new Ape.pipe()"), but the properties Ape.channel and Ape.user

are objects no (constructor) functions.
So the only solution I can think of is wrapping the Ape.mkChan function
with a new mkChan function and augmenting the channel objects there.
But this cannot be what you meant.


So is there any way of creating these two objects directly
 in JS?
Any hints would be usefull.

Timo


 



--- Anthony Catel <[email protected]> schrieb am Mo, 15.3.2010:


Von: Anthony Catel <[email protected]>
Betreff: Re: [APE Project] Re: 1) [SSJS] pipe.onSend callback never called. 2)  
  [SSJS] are 'join' and 'left' events for one specific channel ?

An: [email protected]
Datum: Montag, 15. März, 2010 23:00 Uhr

"Custom pipe" not "custom uni-pipes". It means that you can do what you 

want when you receiv a "SEND" cmd on that pipe.

Btw, indeed, events for specific channel can be done. You can do that 
using javascript and it shouldn't be a part of the APE core (at least 
not the C core).


Some hint :

- http://mootools.net/docs/core/Native/Event <== extend channel/users 
with this class
- wrapping around generics events (Ape.addEvent("onJoin") => MooTools 

fireEvent()...

I would be greatful if anyone find the time to work on this ;)

Anthony

nouknouk a écrit :
> Ok, saw it.
>
> Does that mean it is only for custom uni-pipes ?
> No support for multi pipes ? If so, is there any reason ?

>
> And what about the idea to include in APE server several events for
> one specific channel (including join, left, beforeJoin AND onSend) ?
>
>
> Thanks in advance.
>
> Nouk²

>
>
>
> On 15 mar, 22:45, Anthony Catel <[email protected]> wrote:
>   
>>
 Hi,
>>
>> onSend is used for "custompipe".
>> Look at "proxy.js" ;)
>>
>> Anthony
>>
>>     
>
>   

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


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 

http://mail.yahoo.com 



-- 

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/






-- 

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/

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 

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