From Liberty Unleashed Wiki
This function deletes the given socket.
- bool Socket.Delete()
- function onScriptUnload( )
This will delete the socket associated with p_Socket, this was created in the socket Connect function.
The call onScriptUnload was used in in this example. More info about this in the corresponding page.