Options to relay packets with loss, delay, and jitter.

interface RelayOptions {
    delay?: number;
    jitter?: number;
    loss?: number;
}

Properties

Properties

delay?: number

Median delay in milliseconds.

1

jitter?: number

Jitter around median delay.

0

loss?: number

Packet loss rate between 0.0 (no loss) and 1.0 (100% loss).

0