Hi,
to re-connect a client, just call again the start() method. When the
user brings back his os to life, the JSF will try to run a new CHECK
request, but the user session will be finished and it will receive a
BAD_SESSID error (error 004). You can use this error to know when your
app have to re-connect (Take a look to the chat demo, it have a feature
to restart the app in case of 004 error)
FYI, there is also two events apeDisconnect & apeReconnect that are
fired when the client disconected from the server (connection lost,
server shutdown, etc..), or reconnect
Cheers.
On 15/06/2011 20:44, Szymon wrote:
Hi,
Is there way to try to reconnect client to server on connnection lost?
Ie. scenario - user halts operating system. Connection is lost. When
user brings back os to life how can I reconnect it (user has opened
browser / website all the time, before and after system halt)?
--
Weelya - Improve the web
http://www.weelya.com
http://www.ape-project.org
--
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/