LUA Script - Network Communication

I work between a Linux machine and an Android application.

First of all, I need to open the server socket on the computer to communicate with the application.

I need to code with LUA Script, and I have no idea about it.

Could you give me some examples to open a server socket and receive a message from an Android application?

thanks.

0
source share
1 answer

If you are looking for websocket support in Lua, try lua-websockets .

For regular sockets, you can use luasocket; The introduction page contains an example echo server running over TCP. this SO answer includes an example client.

+1
source

Source: https://habr.com/ru/post/1486578/


All Articles