Page 1 of 1

The use of external libraries that use C in löve: websockets-lua

Posted: Fri Feb 23, 2018 10:37 pm
by radbuglet
Hello,
I was doing research on how to use a websocket server in conjunction with lua and found the library lua-websockets. However, this library requires a couple of modules that use C. How would I use this inside of a löve application (Especially for distribution)?

Note: I am only using macosx and windows as target platforms

Thanks in advance. :)

Re: The use of external libraries that use C in löve: websockets-lua

Posted: Fri Feb 23, 2018 11:50 pm
by radbuglet
Solution: You can locally download modules on luarocks using the --tree flag.

Here is the full documentation for the luarocks command: https://github.com/luarocks/luarocks/wiki/luarocks