DisconnectClient

From OxeyeWiki

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