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