add LogOn and heartbeat message for both client and agent