routeConnectionTestResponse method

bool routeConnectionTestResponse(
  1. ConnectionTestResponseMessage message
)

Filters a reply to this node and hands clock probes to the estimator.

Returns false if the reply was addressed to another peer — the coordinator broadcasts to every participant, so most replies a participant sees in a multi-node session are not its own.

Implementation

bool routeConnectionTestResponse(ConnectionTestResponseMessage message) {
  if (!message.addressedTo(thisNode.uId)) return false;
  if (message.isClockProbe) onConnectionProbeReply?.call(message);
  return true;
}