mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Improve example comment
This commit is contained in:
parent
b302543502
commit
620361348f
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ local PORT = if process.env.PORT ~= nil and #process.env.PORT > 0
|
||||||
then assert(tonumber(process.env.PORT), "Failed to parse port from env")
|
then assert(tonumber(process.env.PORT), "Failed to parse port from env")
|
||||||
else 8080
|
else 8080
|
||||||
|
|
||||||
-- Run the server on port 8080
|
-- Run the server on port 8080, if we get a normal http request on
|
||||||
|
-- the port this will respond with 426 Upgrade Required by default
|
||||||
|
|
||||||
local handle = net.serve(PORT, {
|
local handle = net.serve(PORT, {
|
||||||
handleWebSocket = function(socket)
|
handleWebSocket = function(socket)
|
||||||
|
|
Loading…
Reference in a new issue