onPacketLoss abstract method

void onPacketLoss(
  1. ConnectionId cid,
  2. int seq,
  3. String lossType
)

Called when packet loss is detected.

cid is the connection ID. seq is the sequence number of the lost packet. lossType describes how loss was detected: 'timeout' or 'fast_retransmit'.

Implementation

void onPacketLoss(ConnectionId cid, int seq, String lossType);