Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "xavante"
- require "wsapi.xavante"
- local config = {
- reload = true,
- filename = "./app.lua"
- }
- xavante.HTTP {
- server = {host = "*", port = 6789},
- defaultHost = {
- rules = {
- {
- match = { "^/(.-)$" },
- with = wsapi.xavante.makeGenericHandler(".", config),
- }
- }
- }
- }
- xavante.start()
Add Comment
Please, Sign In to add comment