luasocket asynchronously.

How to use luasocket asynchronously. If the server is not connected. During reconnection, the UI thread will get stuck for a while