I been playing with Lua script and I run into conn:send and conn on . But I can't find and thing about it
How it is used. I read up On Lua and and It look like Lua naming of a function.
I think it's just being used as variable
conn:send conn
n trying to find info on how to use.
How it is used. I read up On Lua and and It look like Lua naming of a function.
Code (Text):
- conn:on("receive",function(conn,payload)
- --next row is for debugging output only
- print(payload)
Code (Text):
- srv=net.createServer(net.TCP) srv:listen(80,function(conn)
- conn:on("receive",function(conn,payload)
- --next row is for debugging output...
