Echo server: Difference between revisions
Content added Content deleted
m (Tidied Lua explanation) |
m (Removed needless line) |
||
Line 1,172: | Line 1,172: | ||
function checkOn (client) |
function checkOn (client) |
||
local line, err |
local line, err = client:receive() |
||
line, err = client:receive() |
|||
if line then |
if line then |
||
print(tostring(client) .. " said " .. line) |
print(tostring(client) .. " said " .. line) |