onHandshakeComplete abstract method

void onHandshakeComplete(
  1. ConnectionId localCid,
  2. Duration duration,
  3. bool success,
  4. String? error,
)

Called when a UDX handshake completes (success or failure).

localCid is the local connection ID. duration is how long the handshake took. success indicates whether the handshake succeeded. error contains the error message if the handshake failed.

Implementation

void onHandshakeComplete(ConnectionId localCid, Duration duration, bool success, String? error);