diff options
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |