Added console messages for heartbeat and ping events.