Constructor Summary
| Public Constructor | ||
| public |
constructor(nodes: NodeId[]) Creates a new Watcher with the given nodes. |
|
Member Summary
| Public Members | ||
| public |
subscriptionStarted: Promise<any> Resolved once the server subscription is set up. |
|
| Private Members | ||
| private |
The browser used to subscribe to server nodes. |
|
| private |
_session: * The current session, if connected @type {Session} |
|
Method Summary
| Public Methods | ||
| public |
close() Ends monitoring nodes. |
|
| Private Methods | ||
| private |
_handleChange(node: Object, dataValue: node-opcua~Variant) Called once a change has been detected and emits a 'change' or 'delete' event. |
|
| private |
Initializes a server subscription. |
|
| private |
async _subscribe(node: BrowsedNode): * Subscribes to value changes of a single node. |
|
Public Constructors
Public Members
Private Members
Public Methods
Private Methods
private _handleChange(node: Object, dataValue: node-opcua~Variant) source
Called once a change has been detected and emits a 'change' or 'delete' event.
Params:
| Name | Type | Attribute | Description |
| node | Object | The node that changed. |
|
| dataValue | node-opcua~Variant |
|
The current value. |
private _setupSubscription(): Promise<node-opcua~ClientSubscription> source
Initializes a server subscription.
private async _subscribe(node: BrowsedNode): * source
Subscribes to value changes of a single node.
Params:
| Name | Type | Attribute | Description |
| node | BrowsedNode | A browsed node. |
Return:
| * |
