Got lost for a minute here. TCPSocket is an alias to APE.PipeProxy. That's why 
I couldn't find it in the doc at first. 

In that case, if I look at the client file PipeProxy.js 
(https://github.com/APE-Project/APE_JSF/blob/master/Source/Pipe/PipeProxy.js), 
it should be "onclose" and not "onDisconnect".

See documentation for more details on PipeProxy here: 
http://ape-project.org/static/jsdocs/client/symbols/APE.PipeProxy.html and the 
events here : http://ape-project.org/static/jsdocs/client/symbols/APE.html


  - Louis

Le 2013-10-04 à 09:47, Pablo Zandoná <[email protected]> a écrit :

> Hello!
> 
> I have a sockClient on my app, but when I kill the aped on my server, the 
> event don't call onDisconnect function. Why?
> 
> My socket:
> 
> var client = new APE.Client();
> var coreApe = null;
> var TCPSocket = null;
> var socketCore = null;
> client.load();                
> 
> client.addEvent('load', function() {
>                                       TCPSocket = this.core.TCPSocket;
>                                       coreApe = this.core;
>                                       coreApe.start(); 
>                               });
>                       
>                               client.addEvent('ready', function() {           
>                         
>                                       socketCore = new TCPSocket();
>                                       socketCore.open(IP_CORE, PORTA_CORE);
>                       
>                                       socketCore.onopen = function() {
>                                               
>                                               log_('Socket CORE conectado!');
>                                               
>                                       };              
>                                                        
>                                       socketCore.onread = function(data) {
>                                               data = utf8_decode(data);
>                                               json = stringToJson(data);
>                                               
> InterfaceClientCore.callback(json);
>                                       };      
> 
>                                       socketCore.onDisconnect = function() {
>                                               
>                                               log_('socket.onDisconnect');
>                                       }
> 
>                               });
> 
> Thanks!
> 
> 
> -- 
> -- 
> 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/groups/opt_out.

-- 
-- 
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/groups/opt_out.

Reply via email to