How to check FSocket disconnect from server

You just have to ping(send a message) to the other socket and see if it replies