onPacketLossEvent property
Callback for metrics when packet loss is detected. Provides sequence number and loss type ('timeout' or 'fast_retransmit').
Implementation
void Function(int sequence, String lossType)? onPacketLossEvent;
Callback for metrics when packet loss is detected. Provides sequence number and loss type ('timeout' or 'fast_retransmit').
void Function(int sequence, String lossType)? onPacketLossEvent;