heartbeat example for online users