Skip to content

Instantly share code, notes, and snippets.

@cablehead
Created December 17, 2015 21:05
Show Gist options
  • Save cablehead/6df2eca5e73515980585 to your computer and use it in GitHub Desktop.
Save cablehead/6df2eca5e73515980585 to your computer and use it in GitHub Desktop.
local levee = require("levee")
local _ = levee._
local h = levee.Hub()
local err, serve = h.tcp:listen(9000)
for conn in serve do
h:spawn(function()
while true do
conn:send(tostring(_.time.localdate()).."\n")
h:sleep(1000)
end
end)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment