Server options that control subscription handling.

interface SubscriptionOptions {
    maxIntervalSeconds: number;
    minIntervalSeconds: number;
    randomizationWindowSeconds: number;
    of(options?: Partial<SubscriptionOptions>): {
        maxIntervalSeconds: number;
        minIntervalSeconds: number;
        randomizationWindowSeconds: number;
    };
}

Properties

maxIntervalSeconds: number

Optional maximum subscription interval to use for sending subscription reports. It will be used if not too low and inside the range requested by the connected controller.

minIntervalSeconds: number

Optional minimum subscription interval to use for sending subscription reports. It will be used when other calculated values are smaller than it. Use this to make sure your device hardware can handle the load and to set limits.

randomizationWindowSeconds: number

Optional subscription randomization window to use for sending subscription reports. This specifies a window in seconds from which a random part is added to the calculated maximum interval to make sure that devices that get powered on in parallel not all send at the same timepoint.