Quote:
Originally Posted by DBA
I have written a basic chat client that talks to an XML Socket server. When it starts it connects to the socket and works fine. However, when I close the Flash Player it is still occupying a connection to the server.
I am trying to determine how I can trap the close of the Flash Player and programmatically close the connection to the server before the program exits.
Thanks in advance.
|
You should be handling this server-side, since you can't rely on the client posting a quit message. Lots of things could happen besides closing, leaving, like termination, rebooting, losing power, etc.
On the server just figure out how to detect if the client is disconnected or not, then remove them from any sort of list. This can be done in almost all coding languages.