public static void sendHeartBeatsResponse(final WebSocket webSocket) {
    if (webSocket != null) {
      webSocket.writeTextMessage(String.format("\"primus::pong::%d\"", System.currentTimeMillis()));
    }
  }
Sends a heartbeat response through the given WebSocket.

@param webSocket the WebSocket to send the response through
ethereum/ethstats/src/main/java/org/hyperledger/besu/ethstats/util/PrimusHeartBeatsHelper.java