interface ServerReservationStoreInit {
    applyDefaultLimit?: boolean;
    defaultDataLimit?: bigint;
    defaultDurationLimit?: number;
    maxReservations?: number;
    reservationClearInterval?: number;
    reservationTtl?: number;
}

Properties

applyDefaultLimit?: boolean

apply default relay limits to a new reservation

Default

true
defaultDataLimit?: bigint

The maximum amount of data allowed to be transferred over a relayed connection

defaultDurationLimit?: number

The maximum time a relayed connection can be open for

maxReservations?: number

maximum number of reservations allowed

Default

15
reservationClearInterval?: number

interval after which stale reservations are cleared

Default

300000
reservationTtl?: number

reservation ttl

Default

7200000