A single Connection can be closed using Close or Disconnect methods.
TsgcWSConnection has a method called Disconnect(), that allows you to disconnect the connection at the socket level. If you call this method, the socket will be disconnected directly without waiting for any response from the client. You can send a Close Code with this method.
TsgcWSConnection has a method called Close(), which allows you to send a message to the client requesting to close the connection. If the client receives this message, it must close the connection and the server will receive a notification that the connection is closed. You can send a Close Code with this method.
Disconnects all active connections. This method is called automatically before the server stops listening, but you can call this method at any time.