onConnect
Fired on an incoming connection.
Warning
The client is not fully initialized at this point. For a more complete client, use onHandshake
Note
Returning false here will close the connection to the client.
Usage
function onConnect(Client: cl)
cl:chat(string.format("Incoming connection: %s", cl:getaddr()))
end