I need to use Lua-socket library to communicate with remote server (I want to create a Gideros based client for my online Pong-game quickpong.com). This library is blocking it means that I can't do anything else while application sends/receives data. Is it possible to run code for network-interaction in parallel thread? Or may be it is possible to run socket connection in asynchronous-style: register some callback-function and call it every time when data received from server?
Comments
And then use Timers to read from time to time
Check this out, for more info
http://appcodingeasy.com/Gideros-Mobile/Using-LuaSocket-in-Gideros