Hai

The connection that this TCPSocket makes, is that to the Ape server?
I thought that this was meant to create on the client "another 'extra' connection" to some server.
http://ape-project.org/wiki/index.php/index.php?page=JS+TCP+-+socket

If the ape server dies, the client should fire a http://ape-project.org/static/jsdocs/client/symbols/APE.html#static_event_apeDisconnect
But it is probably that the 'other' connection stays intact.


Peter Reijnders

Pablo Zandoná schreef op 2013-10-07 15:46:
Thank you for atention!

I try this event onclose, but too don't work.

If you test this example,
http://ape-project.org/wiki/index.php/index.php?page=JS+TCP+-+socket
[8] , onclose too dont work. I dont know why.

For test, I killed the aped process, and in the this exact time the
requisition GET, an error signaled on browser terminal, so I have
thought who should call to method onclose.

Some idea?

Thanks!

Em sábado, 5 de outubro de 2013 14h40min56s UTC-3, Louis Charette
escreveu:

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
[5]), 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
[6] and the events here :
http://ape-project.org/static/jsdocs/client/symbols/APE.html [7]

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

argin:0 0 0 40px;border:none;padding:0px">
ocketCore = null;
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 [1]
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/ [2]
Git Hub : http://github.com/APE-Project/ [3]

---
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
[4].

 --
 --
 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 [9]
 ---
 APE Project (Ajax Push Engine)
 Official website : http://www.ape-project.org/ [10]
 Git Hub : http://github.com/APE-Project/ [11]

 ---
 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
[12].


Links:
------
[1] http://groups.google.com/group/ape-project?hl=en
[2] http://www.ape-project.org/
[3] http://github.com/APE-Project/
[4] https://groups.google.com/groups/opt_out
[5]

https://github.com/APE-Project/APE_JSF/blob/master/Source/Pipe/PipeProxy.js
[6] http://ape-project.org/static/jsdocs/client/symbols/APE.PipeProxy.html
[7] http://ape-project.org/static/jsdocs/client/symbols/APE.html
[8] http://ape-project.org/wiki/index.php/index.php?page=JS+TCP+-+socket
[9] http://groups.google.com/group/ape-project?hl=en
[10] http://www.ape-project.org/
[11] http://github.com/APE-Project/
[12] 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