Difference between revisions of "ServerObject:send"
(Created page with 'Connect to a server. == Function == === Synopsis === <source lang="lua"> clientobject:init( sockettype ) </source> === Arguments === {{param|SocketType|string|"tcp", "udp" or use…') |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Send data to client(s). | |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | server:send(data, recipient) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param| | + | {{param|userdata|data|The data to send to the client(s).}} |
+ | {{param|recipient|recipient|The client who shall receive the data, If nil then sends to all client(s).}} | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
Line 12: | Line 13: | ||
* [[parent::ServerObject]] | * [[parent::ServerObject]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description= | + | {{#set:Description=Send data to client(s).}} |
== Other Languages == | == Other Languages == | ||
− | {{i18n|ServerObject: | + | {{i18n|ServerObject:send}} |
Latest revision as of 02:47, 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
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info