Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const _ = require("underscore");
const PseudoSession = require("../lib/pseudo_session").PseudoSession;
async function parse_xml(nodeset_files) {
const addressSpace = new address_space.AddressSpace();
await address_space.generateAddressSpace(addressSpace, nodeset_files);
const pseudoSession = new PseudoSession(addressSpace);
await parse_opcua_common(pseudoSession);
}
const path = require("path");
const g_nodesets = [
nodesets.standard_nodeset_file,
nodesets.di_nodeset_filename,
nodesets.adi_nodeset_filename,
path.join(__dirname,"../../../modeling/my_data_type.xml")
];
(async ()=> {
await parse_xml(g_nodesets);
console.log("done");
})();
const VariableIds = require("node-opcua-constants").VariableIds;
const MethodIds = require("node-opcua-constants").MethodIds;
const ReferenceType = require("node-opcua-address-space").ReferenceType;
const ServerState = require("node-opcua-common").ServerState;
const ServerStatus = require("node-opcua-common").ServerStatus;
const ServerDiagnosticsSummary = require("node-opcua-common").ServerDiagnosticsSummary;
const endpoints_service = require("node-opcua-service-endpoints");
const ApplicationDescription = endpoints_service.ApplicationDescription;
const nodesets = require("node-opcua-nodesets");
exports.standard_nodeset_file = nodesets.standard_nodeset_file;
exports.di_nodeset_filename = nodesets.di_nodeset_filename;
exports.adi_nodeset_filename = nodesets.adi_nodeset_filename;
const mini_nodeset_filename = require("node-opcua-address-space/test_helpers/get_mini_address_space").mini_nodeset_filename;
exports.mini_nodeset_filename = mini_nodeset_filename;
const debugLog = require("node-opcua-debug").make_debugLog(__filename);
const doDebug = require("node-opcua-debug").checkDebugFlag(__filename);
const ServerCapabilities = require("./server_capabilities").ServerCapabilities;
const HistoryServerCapabilities = require("./history_server_capabilities").HistoryServerCapabilities;
const eoan = require("node-opcua-address-space");
/**
* @class ServerEngine