Need to make it so that the server closes sockets that are not being used.
maybe store the time every time you get a msg from the server and then every 5 min (or however long) check if that time is more that 5 min (or however long) ago. if it is then close the socket and finish the thread.
Need to make it so that the server closes sockets that are not being used.
maybe store the time every time you get a msg from the server and then every 5 min (or however long) check if that time is more that 5 min (or however long) ago. if it is then close the socket and finish the thread.