Socket.Close
From Liberty Unleashed Wiki
Closes the given socket connection
Syntax
bool Socket.Close( int connection )
Arguments
- connection - The ID of the client connection you wish to close
Example
function onPlayerChat( player, text ) { p_Socket.Close( 0 ); }
This would close the connection with id 0. p_Socket was created in the Connect function.
Notes
The call onPlayerChat was used in in this example. More info about this in the corresponding page.