Ask coding questions

← Back to all posts
is there a way to do web servers with lua?
itsdawildshadow

hello! i wanna know if there is a way to create a web server with lua in repls, i tried using the luvit built in method but it simply doenst work

Answered by lajbel [earned 5 cycles]
View Answer
Voters
itsdawildshadow
Comments
hotnewtop
lajbel
itsdawildshadow

@lajbel i already have luvit installed, i said i tried using the built in http module from luvit, it returns an error saying socket is nil

itsdawildshadow

@lajbel i tried re installing the deps and used your method shown inside your repl, and it worked thanks!