Install lua-socket by entering the following commands in the terminal:
sudo apt update sudo apt install lua-socket
Description:
TCP/UDP socket library for the Lua language
Luasocket provides a TCP/UDP socket library for the Lua language . Also provided are HTTP and SMTP implementations, a simple FTP implementation and some URL parsing functions. . Luasocket supports blocking and non-blocking sockets and also provides a select() interface to the language.
Homepage: http://w3.impa.br/~diego/software/luasocket/
Version: 3.0~rc1+git+ac3201d-4
Section: universe/interpreters