'Remove client from socket server

I have a socket serevr with this function to add users

 Dim clientsList As New Hashtable

 Sub Main()
...
        serverSocket.Start()
        clientSocket = serverSocket.AcceptTcpClient()
        clientsList(dataFromClient) = clientSocket
...
                    

  End Sub


What is the metod if I want to remove the client?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source