Install lua-nginx-websocket by entering the following commands in the terminal:
sudo apt update sudo apt install lua-nginx-websocket
Description:
Lua websocket client driver for the nginx embedded Lua language
This modules provides a pure Lua websocket driver implementation for the embedded nginx's Lua interpreter. . Because this module is based on the ngx_lua's cosocket API, it inherits the advantage of a real nonblocking behaviour running effectively on the underlying nginx server ultra-fast technology design, allowing Web developers making use of the Lua programming language to script and construct extremely high-performance web applications capable to handle 10K+ connections. . Note that this module works for both nginx (provided by nginx-extras) and the OpenResty bundle.
Homepage: https://github.com/openresty/lua-resty-websocket
Version: 0.06-1
Section: universe/interpreters