Is SocketConnected a good way to see if clients are in the game, I ask because in my networking system I use SocketConnected to test to see if people have left (the client then just has to close thier socket). The problem I am having is when one client closes the server tells me that ALL clients have closed thier sockets and kills all of em.
I used to have a network message telling me that a client disconnected and then the client waited for the acknowledgement from the server but this took about two to three seconds to disconnect, so I thought ah SocketConnected can tell me if the client has killed thier socket but it kills everyone.
I used to have a network message telling me that a client disconnected and then the client waited for the acknowledgement from the server but this took about two to three seconds to disconnect, so I thought ah SocketConnected can tell me if the client has killed thier socket but it kills everyone.