DisconnectClient

From OxeyeWiki

Revision as of 18:34, 6 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

device:disconnectClient(clientId)

Disconnects a given client. This will not generate a "client disconnected" event. It will generate a "host disconnected" event on the client-side, though.

Parameter Expected Type Description
clientId An integer The id number of the client that should be disconnected
Returns

Returns nothing.

Daisymoon Network Lib

Example

   myDevice:disconnectClient(clients[i].id)

   removePlayerUnits(clients[i])
   table.remove(clients, i)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox