namespace HRM.UI.Realtime { /// /// The "Realtime" section of appsettings.json. Every value has a sensible default, so the section may be left out. /// public class RealtimeSettings { /// How often the server pings an idle connection (seconds). Keep below any proxy idle timeout. public int KeepAliveSeconds { get; set; } = 15; /// A client is dropped when nothing arrives from it for this long (seconds). Must be about 2 x the client's keep-alive. public int ClientTimeoutSeconds { get; set; } = 30; /// Largest message a client may send to the hub (KB). Clients only send small commands. public int MaxReceiveMessageKB { get; set; } = 64; /// Background jobs allowed to run at the same time; further jobs wait in the queue. public int MaxConcurrentJobs { get; set; } = 4; /// A finished job's result stays readable this long (minutes), so a reload or a late tab still sees it. public int FinishedJobRetentionMinutes { get; set; } = 60; /// Least time between two progress messages of one job (milliseconds). Stage changes and the end are always sent at once. public int ProgressThrottleMilliseconds { get; set; } = 250; } }