onHeartbeat abstract method

void onHeartbeat(
  1. Heartbeat heartbeat,
  2. SocketInfo source
)

Handle an incoming heartbeat coming from a given source.

Be sure to check Connect.sender and Connect.receiver, and compare the source against the current destination to properly handle the heartbeat.

Implementation

void onHeartbeat(Heartbeat heartbeat, SocketInfo source);