summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index 18fe919..03f4431 100644
--- a/main.lua
+++ b/main.lua
@@ -16,7 +16,7 @@ local function reject(stream, code, reason)
stream:write_chunk(reason, true)
end
-function onstream(server, stream)
+local function onstream(server, stream)
print("stream you.")
local head = stream:get_headers()
@@ -37,7 +37,7 @@ function onstream(server, stream)
logic.onsocket(ws,room)
local ws_open = true
- function close()
+ local function close()
logic.onclose(ws)
if ws_open then ws:close() end
ws_open = false