A callback passing the server Socket when the client disconnects from the server.
final void Function(Socket socket)? onDisconnect;