On 15 mar, 19:30, Timo Michna <[email protected]> wrote:
> For 1):What I meant is, that maybe the event is not fired on the channel´s 
> pipebut only on the user´s pipe, so that´s why you callback function is 
> notexecuted. only a guess.

I think I found part of the the answer in the APE doc itself (here:
http://www.ape-project.org/wiki/index.php/Tutorial:Understanding_pipe)
: "The communication pipe of a non-interactive channel is read-only,
meaning that users do not know each other, and can't communicate via
the channel. Only authorized entities are allowed to do so."

In other words, in a non-interactive channel (ie. a channel beginning
with a 'star' character), the user cannot send anything ; only listen
for RAWs sent by the server is allowed.
On the other hand, I performed some tests with 'regular' interactive
channels, and it doesn't seem to work either. So I think you're right:
'onSend' is only for uni pipes.

Anyway, as I need in any case 'non interactive channels', I think I'll
do it another way: for each channel (say *mychannel1, *mychannel2,
*mychannel3, ...) I'll use one specific command label for each channel
(eg. "cmd_mychannel1", "cmd_mychannel2", "cmd_mychannel3") and each
instance of MyClass will register 'globally' for his own specific
command's label.



> For 2):Hmm, I understand.So you need some kind of registry. Maybe something 
> like this (Just a quick hack):
[...]

The purpose of my question was more to propose a new feature to be
included in the code of the server itself, more than finding a
workaround, but you're right, using a singleton is another solution.


Thanks.

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