Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function MessageBuilder(options) {
options = options || {};
MessageBuilderBase.call(this, options);
this.securityPolicy = SecurityPolicy.Invalid; // not known yet
this.securityMode = options.securityMode || MessageSecurityMode.INVALID; // not known yet
this.objectFactory = options.objectFactory || require("node-opcua-factory");
assert(_.isFunction(this.objectFactory.constructObject), " the objectFactory must provide a constructObject method");
this.previous_sequenceNumber = -1; // means unknown
assert(_.isFinite(this.previous_sequenceNumber));
}
util.inherits(MessageBuilder, MessageBuilderBase);