node-opcua-utils
Advanced tools
Comparing version 2.56.0 to 2.57.0
@@ -23,2 +23,3 @@ /// <reference types="node" /> | ||
export declare class WatchDog extends EventEmitter { | ||
static lastSeenToDuration(lastSeen: number): number; | ||
static emptyKeepAlive: () => void; | ||
@@ -25,0 +26,0 @@ /** |
@@ -51,2 +51,5 @@ "use strict"; | ||
} | ||
static lastSeenToDuration(lastSeen) { | ||
return _getCurrentSystemTick() - lastSeen; | ||
} | ||
/** | ||
@@ -114,3 +117,3 @@ * returns the number of subscribers using the WatchDog object. | ||
delete subscriber._watchDog; | ||
delete subscriber._watchDogData; | ||
// leave it as it might be usefull, delete subscriber._watchDogData; | ||
subscriber.keepAlive = WatchDog.emptyKeepAlive; | ||
@@ -117,0 +120,0 @@ // delete timer when the last subscriber comes out |
{ | ||
"name": "node-opcua-utils", | ||
"version": "2.56.0", | ||
"version": "2.57.0", | ||
"description": "pure nodejs OPCUA SDK - module -utils", | ||
@@ -39,3 +39,3 @@ "main": "./dist/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "9f6eac1c658c0d182fbe03cf58f799af468615eb" | ||
"gitHead": "cb6a995ab35ea6231ffca85fbd0b624fe37119d2" | ||
} |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -63,2 +63,7 @@ /** | ||
export class WatchDog extends EventEmitter { | ||
static lastSeenToDuration(lastSeen: number): number { | ||
return _getCurrentSystemTick() - lastSeen; | ||
} | ||
static emptyKeepAlive = (): void => { | ||
@@ -155,3 +160,3 @@ /* */ | ||
delete subscriber._watchDog; | ||
delete subscriber._watchDogData; | ||
// leave it as it might be usefull, delete subscriber._watchDogData; | ||
subscriber.keepAlive = WatchDog.emptyKeepAlive; | ||
@@ -158,0 +163,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65257
1251