private void doOnHeartbeat(CometClientTransportWrapper transport) { if (transport == primaryTransport) { listener.onHeartbeat(); } }