Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async installAlarmMonitoring() {
if (!this.session) { return; }
this.clientAlarms = await installAlarmMonitoring(this.session);
this.clientAlarms.on("alarmChanged", () => {
this.clientAlarms.purgeUnusedAlarms();
this.emit("alarmChanged", this.clientAlarms)
});
}
async function alarmStuff() {
assert(g_session);
clientAlarms = await opcua.installAlarmMonitoring(g_session);
clientAlarms.on("alarmChanged", updateAlarmBox);
}
alarmStuff();