Difference between revisions of "ServerObject:send"

Line 9: Line 9:
 
{{param|recipient|recipient|The client who shall receive the data, If nil then sends to all client(s).}}
 
{{param|recipient|recipient|The client who shall receive the data, If nil then sends to all client(s).}}
 
=== Returns ===
 
=== Returns ===
"errors" - a count of the number of errors encountered. Anything greater than suggests sending failure.
+
"errors" - a count of the number of errors encountered. Anything greater than 0 suggests sending failure.
 
== See Also ==
 
== See Also ==
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]

Revision as of 02:41, 16 March 2013

Send data to client(s).

Function

Synopsis

server:send(data, recipient)

Arguments

userdata data
The data to send to the client(s).
recipient recipient
The client who shall receive the data, If nil then sends to all client(s).

Returns

"errors" - a count of the number of errors encountered. Anything greater than 0 suggests sending failure.

See Also

Other Languages