public void Dispose()
 {
     AsyncOnClientDisConnect?.Invoke(this);
     if (Client.Connected)
     {
         Client.Shutdown(SocketShutdown.Both);
     }
     Client.Close();
     Client.Dispose();
     AsyncOnClientDisConnected?.Invoke(this);
 }
 private void ClientSocket_AsyncOnClientDisConnect(ClientSocket client) => AsyncOnClientDisConnect?.Invoke(client);