add libpomelo heartbeat callback