Unity socket client. Put all the code that you need to wait for some time in a coroutine ...