After using the default transport mode for years, I am trying to switch to 
Websockets. I suspect that this might improve the situation with APE being 
not fully reliable in certain circumstances. Sometimes, commands to APE 
stop being received (when the user is still connected to the Internet, I 
know this because they can send me logs via AJAX after the APE connection 
goes wrong). In these situations, resending the command does not help. APE 
just does not receive from the client.

So in short, I want to try Websockets and see if it helps.

After including the appropriate transport JS file in the config as well as 
switch APE.Config.transport to 6, I get an error in the handshake.


*ape_jsf.min:973 WebSocket connection to 
'ws://1.ape.local.ape-project.org/6/' failed: Error during WebSocket 
handshake: 'Upgrade' header is missing*

Error on this line:
},initWs:function(){this.ws=new 
WebSocket((this.ape.options.secure?"wss":"ws")+"://"+this.ape.options.frequency+"."+this.ape.options.server+"/"+this.ape.options.transport+"/");

Does it ring a bell?

Do I need to do something on the APE server side? Or cannot it work at all 
because I have some weird settings there? (I see a thread where Pablo 
Tejada talks about this possibility briefly).

My Apache config for APE is below. Maybe the Proxy bits are the cause of 
the problem?

<VirtualHost *:80>

    ServerName ape_on_optiplex_9020
    ServerAlias ape.local.ape-project.org
    ServerAlias *.ape.local.ape-project.org

        # Everything expires after 10 months except php files that are not 
cached
        ExpiresActive On
        ExpiresDefault A2592000
        #10 months
        ExpiresByType text/php A0

    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
   ProxyPass / http://localhost:6969/
   ProxyPassReverse / http://localhost:6969/
    <Location />
        Order allow,deny
        Allow from all
    </Location>

</VirtualHost>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to