ServerObject:setCallback
Sets the callbacks for the server.
Function
Synopsis
server:setCallback(receive, connect, disconnect)
Arguments
-
function receive
- Callback called on incoming data(filtered): function(data, id).
-
function connect
- Callback called when client(s) connect: function(id).
-
function disconnect
- Callback called when client(s) disconnect (also called by ping): function(id).
Returns
Nothing.
See Also
Category: