Is the perl script always connected, or intermittenly?

If the latter, the solution I've been using is to connect to APE via HTTP
and send in a command, which I trap with onCommand.

Have you verified that your script actually runs?  Maybe put your handler in
main.ape.js to test?

Wes

On Sun, Mar 20, 2011 at 8:55 PM, Duncan Koss <[email protected]> wrote:

> I am trying to build an APE module that receives data from a perl
> script.
>
> In my server-side JS, I create a socket, and declare onRead and
> onAccept callback functions. The perl script successfully connects to
> the socket (the script dies when APE is not running, and finishes when
> it is running), but the onAccept callback function is never triggered.
>
> I have tried using a simple callback function that only outputs a
> message to the log:
> perlConnection.onAccept = function(client) {
>        Ape.log("Client connected");
> }
>
> --
> 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/
>



-- 
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102

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