In my application I have a websocket https://github.com/TakahikoKawasaki/nv-websocket-client. I send some commands to the server in my AsyncTask and showed progressBar. So I need to wait 60 seconds for response from the server after sending commands. How to do it correctly?
Asked
Active
Viewed 329 times
0
-
Please show us your code. Are you sure it's not a case with slow internet? – Ruchira Randana Apr 09 '16 at 15:56
-
Hi Ruchira! Thanks for response. Yes, it is case with slow internet, so I solve problem by Thread.sleep(). How do you think it is correct way? – Dauren Chapaev Apr 11 '16 at 02:33