This repository provides a native binding to SDL2_net to provide TCP and UDP sockets support in Lite XL. Inspiration was taken from luasdl2 sdl-net wrapper.
You will need to have meson and a working build environment for your operating system. Then, to build just execute the following commands:
meson setup build
meson compile -C build
To install just copy the generated library file to your libraries directory:
cp build/net.so ~/.config/lite-xl/libraries/
You can view the API documention on the docs subdirectory, and also consult official SDL2_net header file which has useful doc comments.