node-opcua-client 2.132.0 → 2.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client_base.d.ts +6 -20
- package/dist/client_base.js.map +1 -1
- package/dist/client_session.d.ts +11 -76
- package/dist/client_session.js.map +1 -1
- package/dist/client_session_keepalive_manager.d.ts +1 -3
- package/dist/client_session_keepalive_manager.js +1 -3
- package/dist/client_session_keepalive_manager.js.map +1 -1
- package/dist/client_subscription.d.ts +0 -9
- package/dist/client_subscription.js.map +1 -1
- package/dist/client_utils.d.ts +1 -4
- package/dist/client_utils.js +1 -4
- package/dist/client_utils.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/private/client_base_impl.d.ts +4 -5
- package/dist/private/client_base_impl.js +11 -11
- package/dist/private/client_base_impl.js.map +1 -1
- package/dist/private/client_monitored_item_base_impl.d.ts +1 -0
- package/dist/private/client_monitored_item_base_impl.js +1 -0
- package/dist/private/client_monitored_item_base_impl.js.map +1 -1
- package/dist/private/client_monitored_item_group_impl.d.ts +2 -4
- package/dist/private/client_monitored_item_group_impl.js +1 -1
- package/dist/private/client_monitored_item_group_impl.js.map +1 -1
- package/dist/private/client_monitored_item_impl.d.ts +5 -6
- package/dist/private/client_monitored_item_impl.js +4 -4
- package/dist/private/client_monitored_item_impl.js.map +1 -1
- package/dist/private/client_publish_engine.d.ts +12 -6
- package/dist/private/client_publish_engine.js +12 -6
- package/dist/private/client_publish_engine.js.map +1 -1
- package/dist/private/client_session_impl.d.ts +12 -77
- package/dist/private/client_session_impl.js +7 -32
- package/dist/private/client_session_impl.js.map +1 -1
- package/dist/private/client_subscription_impl.d.ts +1 -1
- package/dist/private/client_subscription_impl.js +1 -1
- package/dist/private/opcua_client_impl.d.ts +2 -8
- package/dist/private/opcua_client_impl.js +8 -14
- package/dist/private/opcua_client_impl.js.map +1 -1
- package/dist/private/reconnection/client_subscription_reconnection.d.ts +1 -1
- package/dist/private/reconnection/client_subscription_reconnection.js +1 -1
- package/dist/tools/findservers.d.ts +0 -4
- package/dist/tools/findservers.js.map +1 -1
- package/dist/verify.d.ts +1 -1
- package/dist/verify.js +4 -4
- package/dist/verify.js.map +1 -1
- package/package.json +43 -43
- package/source/client_base.ts +8 -20
- package/source/client_session.ts +20 -90
- package/source/client_session_keepalive_manager.ts +1 -3
- package/source/client_subscription.ts +0 -9
- package/source/client_utils.ts +1 -4
- package/source/index.ts +1 -1
- package/source/private/client_base_impl.ts +4 -5
- package/source/private/client_monitored_item_group_impl.ts +2 -4
- package/source/private/client_monitored_item_impl.ts +5 -6
- package/source/private/client_publish_engine.ts +12 -6
- package/source/private/client_session_impl.ts +49 -102
- package/source/private/client_subscription_impl.ts +1 -1
- package/source/private/opcua_client_impl.ts +6 -17
- package/source/private/reconnection/client_subscription_reconnection.ts +1 -1
- package/source/tools/findservers.ts +0 -4
- package/source/verify.ts +1 -1
- package/dist/alarms_and_conditions/client_alarm.d.ts +0 -49
- package/dist/alarms_and_conditions/client_alarm.js +0 -97
- package/dist/alarms_and_conditions/client_alarm.js.map +0 -1
- package/dist/alarms_and_conditions/client_alarm_list.d.ts +0 -25
- package/dist/alarms_and_conditions/client_alarm_list.js +0 -98
- package/dist/alarms_and_conditions/client_alarm_list.js.map +0 -1
- package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.d.ts +0 -18
- package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.js +0 -175
- package/dist/alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions.js.map +0 -1
- package/dist/alarms_and_conditions/client_alarm_tools_dump_event.d.ts +0 -9
- package/dist/alarms_and_conditions/client_alarm_tools_dump_event.js +0 -60
- package/dist/alarms_and_conditions/client_alarm_tools_dump_event.js.map +0 -1
- package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.d.ts +0 -3
- package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.js +0 -15
- package/dist/alarms_and_conditions/client_alarm_tools_extractConditionFields.js.map +0 -1
- package/dist/reconnection.d.ts +0 -9
- package/dist/reconnection.js +0 -453
- package/dist/reconnection.js.map +0 -1
package/source/client_session.ts
CHANGED
|
@@ -6,11 +6,12 @@ import { EventEmitter } from "events";
|
|
|
6
6
|
|
|
7
7
|
import { DateTime, UInt8 } from "node-opcua-basic-types";
|
|
8
8
|
import { ServerState } from "node-opcua-common";
|
|
9
|
-
import { Certificate } from "node-opcua-crypto";
|
|
9
|
+
import { Certificate } from "node-opcua-crypto/web";
|
|
10
10
|
import { LocalizedTextLike } from "node-opcua-data-model";
|
|
11
11
|
import { DataValue, TimestampsToReturn } from "node-opcua-data-value";
|
|
12
12
|
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
13
13
|
import {
|
|
14
|
+
CallMethodRequestLike,
|
|
14
15
|
IBasicSession,
|
|
15
16
|
IBasicSessionBrowse,
|
|
16
17
|
IBasicSessionBrowseNext,
|
|
@@ -57,6 +58,7 @@ import { ArgumentDefinition, MethodId } from "node-opcua-pseudo-session";
|
|
|
57
58
|
import { AggregateFunction } from "node-opcua-constants";
|
|
58
59
|
import {
|
|
59
60
|
AggregateConfigurationOptions,
|
|
61
|
+
CallMethodResult,
|
|
60
62
|
HistoryReadRequest,
|
|
61
63
|
HistoryReadResponse,
|
|
62
64
|
HistoryReadValueIdOptions
|
|
@@ -70,7 +72,6 @@ export { ArgumentDefinition, CallMethodRequestLike, MethodId } from "node-opcua-
|
|
|
70
72
|
|
|
71
73
|
import { ClientSubscription } from "./client_subscription";
|
|
72
74
|
|
|
73
|
-
|
|
74
75
|
export interface MonitoredItemData {
|
|
75
76
|
clientHandles: Uint32Array;
|
|
76
77
|
serverHandles: Uint32Array;
|
|
@@ -160,12 +161,10 @@ export interface ClientSessionBrowseService extends IBasicSessionBrowse, IBasicS
|
|
|
160
161
|
* with browseNext
|
|
161
162
|
*/
|
|
162
163
|
requestedMaxReferencesPerNode: number;
|
|
163
|
-
|
|
164
|
-
}
|
|
164
|
+
}
|
|
165
165
|
|
|
166
166
|
// translate browsePathTo NodeId services
|
|
167
|
-
export interface ClientSessionTranslateBrowsePathService extends IBasicSessionTranslateBrowsePath {
|
|
168
|
-
}
|
|
167
|
+
export interface ClientSessionTranslateBrowsePathService extends IBasicSessionTranslateBrowsePath {}
|
|
169
168
|
|
|
170
169
|
// query services
|
|
171
170
|
export interface ClientSessionQueryService {
|
|
@@ -176,66 +175,9 @@ export interface ClientSessionQueryService {
|
|
|
176
175
|
|
|
177
176
|
// call services
|
|
178
177
|
export interface ClientSessionCallService extends IBasicSessionCall {
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* @method call
|
|
182
|
-
*
|
|
183
|
-
* @param methodToCall {CallMethodRequest} the call method request
|
|
184
|
-
* @param callback
|
|
185
|
-
*
|
|
186
|
-
* @example :
|
|
187
|
-
*
|
|
188
|
-
* ```javascript
|
|
189
|
-
* const methodToCall = {
|
|
190
|
-
* objectId: "ns=2;i=12",
|
|
191
|
-
* methodId: "ns=2;i=13",
|
|
192
|
-
* inputArguments: [
|
|
193
|
-
* new Variant({...}),
|
|
194
|
-
* new Variant({...}),
|
|
195
|
-
* ]
|
|
196
|
-
* }
|
|
197
|
-
* session.call(methodToCall,function(err,callResult) {
|
|
198
|
-
* if (!err) {
|
|
199
|
-
* console.log(" statusCode = ",callResult.statusCode);
|
|
200
|
-
* console.log(" inputArgumentResults[0] = ",callResult.inputArgumentResults[0].toString());
|
|
201
|
-
* console.log(" inputArgumentResults[1] = ",callResult.inputArgumentResults[1].toString());
|
|
202
|
-
* console.log(" outputArgument[0] = ",callResult.outputArgument[0].toString()); // array of variant
|
|
203
|
-
* }
|
|
204
|
-
* });
|
|
205
|
-
* ```
|
|
206
|
-
*
|
|
207
|
-
* @method call
|
|
208
|
-
*
|
|
209
|
-
* @param methodsToCall {CallMethodRequest[]} the call method request array
|
|
210
|
-
* @param callback
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
* @example :
|
|
214
|
-
*
|
|
215
|
-
* ```javascript
|
|
216
|
-
* const methodsToCall = [ {
|
|
217
|
-
* objectId: "ns=2;i=12",
|
|
218
|
-
* methodId: "ns=2;i=13",
|
|
219
|
-
* inputArguments: [
|
|
220
|
-
* new Variant({...}),
|
|
221
|
-
* new Variant({...}),
|
|
222
|
-
* ]
|
|
223
|
-
* }];
|
|
224
|
-
* session.call(methodsToCall,function(err,callResults) {
|
|
225
|
-
* if (!err) {
|
|
226
|
-
* const callResult = callResults[0];
|
|
227
|
-
* console.log(" statusCode = ",rep.statusCode);
|
|
228
|
-
* console.log(" inputArgumentResults[0] = ",callResult.inputArgumentResults[0].toString());
|
|
229
|
-
* console.log(" inputArgumentResults[1] = ",callResult.inputArgumentResults[1].toString());
|
|
230
|
-
* console.log(" outputArgument[0] = ",callResult.outputArgument[0].toString()); // array of variant
|
|
231
|
-
* }
|
|
232
|
-
* });
|
|
233
|
-
* ```
|
|
234
|
-
*/
|
|
235
178
|
|
|
236
179
|
|
|
237
180
|
getArgumentDefinition(methodId: MethodId): Promise<ArgumentDefinition>;
|
|
238
|
-
|
|
239
181
|
getArgumentDefinition(methodId: MethodId, callback: (err: Error | null, args?: ArgumentDefinition) => void): void;
|
|
240
182
|
}
|
|
241
183
|
|
|
@@ -252,36 +194,33 @@ export interface ClientSessionRegisterService {
|
|
|
252
194
|
|
|
253
195
|
// read services
|
|
254
196
|
export interface ClientSessionReadService extends IBasicSessionRead {
|
|
255
|
-
|
|
256
197
|
/**
|
|
257
|
-
* @deprecated
|
|
198
|
+
* @deprecated use read() instead
|
|
258
199
|
*/
|
|
259
200
|
readVariableValue(nodeId: NodeIdLike, callback: ResponseCallback<DataValue>): void;
|
|
260
201
|
/**
|
|
261
|
-
* @deprecated
|
|
202
|
+
* @deprecated use read() instead
|
|
262
203
|
*/
|
|
263
204
|
readVariableValue(nodeId: NodeIdLike): Promise<DataValue>;
|
|
264
205
|
/**
|
|
265
|
-
* @deprecated
|
|
206
|
+
* @deprecated use read() instead
|
|
266
207
|
*/
|
|
267
208
|
readVariableValue(nodeIds: NodeIdLike[], callback: ResponseCallback<DataValue[]>): void;
|
|
268
209
|
/**
|
|
269
|
-
* @deprecated
|
|
210
|
+
* @deprecated use read() instead
|
|
270
211
|
*/
|
|
271
212
|
readVariableValue(nodeIds: NodeIdLike[]): Promise<DataValue[]>;
|
|
272
213
|
}
|
|
273
214
|
|
|
274
215
|
// write services
|
|
275
216
|
export interface ClientSessionWriteService extends IBasicSessionWrite {
|
|
276
|
-
|
|
277
|
-
|
|
278
217
|
/**
|
|
279
|
-
* @deprecated
|
|
218
|
+
* @deprecated use write() instead
|
|
280
219
|
*/
|
|
281
220
|
writeSingleNode(nodeToWrite: NodeIdLike, value: Variant): Promise<StatusCode>;
|
|
282
221
|
|
|
283
222
|
/**
|
|
284
|
-
* @deprecated
|
|
223
|
+
* @deprecated use write() instead
|
|
285
224
|
*/
|
|
286
225
|
writeSingleNode(nodeToWrite: NodeIdLike, value: Variant, callback: ResponseCallback<StatusCode>): void;
|
|
287
226
|
}
|
|
@@ -289,8 +228,6 @@ export interface ClientSessionWriteService extends IBasicSessionWrite {
|
|
|
289
228
|
// raw subscription services
|
|
290
229
|
export interface ClientSessionRawSubscriptionService {
|
|
291
230
|
/**
|
|
292
|
-
* @method createSubscription
|
|
293
|
-
* @async
|
|
294
231
|
*
|
|
295
232
|
* @example
|
|
296
233
|
*
|
|
@@ -334,9 +271,7 @@ export interface ClientSessionRawSubscriptionService {
|
|
|
334
271
|
deleteSubscriptions(options: DeleteSubscriptionsRequestLike): Promise<DeleteSubscriptionsResponse>;
|
|
335
272
|
|
|
336
273
|
/**
|
|
337
|
-
*
|
|
338
|
-
* @method modifyMonitoredItems
|
|
339
|
-
* @async
|
|
274
|
+
* modify the monitored item parameters
|
|
340
275
|
*/
|
|
341
276
|
modifyMonitoredItems(options: ModifyMonitoredItemsRequestLike, callback?: ResponseCallback<ModifyMonitoredItemsResponse>): void;
|
|
342
277
|
|
|
@@ -425,8 +360,6 @@ export interface ClientSessionReadHistoryService {
|
|
|
425
360
|
): Promise<HistoryReadResult>;
|
|
426
361
|
|
|
427
362
|
/**
|
|
428
|
-
* @method readAggregateValue
|
|
429
|
-
* @async
|
|
430
363
|
*
|
|
431
364
|
* @example
|
|
432
365
|
*
|
|
@@ -449,7 +382,7 @@ export interface ClientSessionReadHistoryService {
|
|
|
449
382
|
* new Date("2015-06-10T09:01:00.000Z"),
|
|
450
383
|
* AggregateFunction.Average, 3600000);
|
|
451
384
|
* ```
|
|
452
|
-
* @param
|
|
385
|
+
* @param nodesToRead the read value id
|
|
453
386
|
* @param startTime the start time in UTC format
|
|
454
387
|
* @param endTime the end time in UTC format
|
|
455
388
|
* @param aggregateFn
|
|
@@ -569,7 +502,6 @@ export interface ClientSessionDataTypeService {
|
|
|
569
502
|
*
|
|
570
503
|
* this method is useful to determine which DataType to use when constructing a Variant
|
|
571
504
|
* @param nodeId - the node id of the variable to query
|
|
572
|
-
* @async
|
|
573
505
|
*
|
|
574
506
|
*
|
|
575
507
|
* @example
|
|
@@ -603,7 +535,6 @@ export interface ClientSessionExtensionObjectService {
|
|
|
603
535
|
constructExtensionObject(dataType: NodeId, pojo: Record<string, unknown>): Promise<ExtensionObject>;
|
|
604
536
|
|
|
605
537
|
/**
|
|
606
|
-
* @private
|
|
607
538
|
*/
|
|
608
539
|
extractNamespaceDataType(): Promise<ExtraDataTypeManager>;
|
|
609
540
|
}
|
|
@@ -616,7 +547,7 @@ export interface ClientSessionConditionService {
|
|
|
616
547
|
/**
|
|
617
548
|
* helper to add a comment to a condition
|
|
618
549
|
*
|
|
619
|
-
* The
|
|
550
|
+
* The addComment Method is used to apply a comment to a specific state of a Condition instance.
|
|
620
551
|
*
|
|
621
552
|
* Normally, the NodeId of the object instance as the ObjectId is passed to the Call Service.
|
|
622
553
|
*
|
|
@@ -703,20 +634,19 @@ export interface ClientSessionConditionService {
|
|
|
703
634
|
acknowledgeCondition(conditionId: NodeId, eventId: Buffer, comment: LocalizedTextLike): Promise<StatusCode>;
|
|
704
635
|
|
|
705
636
|
/**
|
|
706
|
-
* @method findMethodId
|
|
707
637
|
*
|
|
708
638
|
* @param nodeId the nodeId of the parent Object
|
|
709
|
-
* @param methodName the method name
|
|
639
|
+
* @param methodName the method name
|
|
710
640
|
* @param callback
|
|
711
|
-
*
|
|
712
|
-
* note:
|
|
641
|
+
*
|
|
642
|
+
* note:
|
|
713
643
|
* - methodName is a browse name and may therefore be prefixed with a namespace index.
|
|
714
644
|
* - if method is not found on the object specified by nodeId, then the findMethodId will
|
|
715
|
-
* recursively browse up the hierarchy of object typeDefinition Node
|
|
645
|
+
* recursively browse up the hierarchy of object typeDefinition Node
|
|
716
646
|
* until it reaches the root type. and try to find the first method that matches the
|
|
717
647
|
* provided name.
|
|
718
|
-
*
|
|
719
|
-
* @deprecated use global findMethodId(session, nodeId,
|
|
648
|
+
*
|
|
649
|
+
* @deprecated use global findMethodId(session, nodeId, methodName): Promise<NodeId> instead
|
|
720
650
|
*/
|
|
721
651
|
findMethodId(nodeId: NodeIdLike, methodName: string, callback: ResponseCallback<NodeId>): void;
|
|
722
652
|
|
|
@@ -90,13 +90,11 @@ export class ClientSessionKeepAliveManager extends EventEmitter implements Clien
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* @
|
|
94
|
-
* @internal
|
|
93
|
+
* @private
|
|
95
94
|
* when a session is opened on a server, the client shall send request on a regular basis otherwise the server
|
|
96
95
|
* session object might time out.
|
|
97
96
|
* start_ping make sure that ping_server is called on a regular basis to prevent session to timeout.
|
|
98
97
|
*
|
|
99
|
-
* @param callback
|
|
100
98
|
*/
|
|
101
99
|
private async _ping_server(): Promise<number> {
|
|
102
100
|
const session = this.session;
|
|
@@ -82,7 +82,6 @@ export interface ClientSubscription extends EventEmitter {
|
|
|
82
82
|
/**
|
|
83
83
|
* add a monitor item to the subscription
|
|
84
84
|
*
|
|
85
|
-
* @method monitor
|
|
86
85
|
*
|
|
87
86
|
* Monitoring a simple Value Change
|
|
88
87
|
* ---------------------------------
|
|
@@ -193,12 +192,10 @@ export interface ClientSubscription extends EventEmitter {
|
|
|
193
192
|
): void;
|
|
194
193
|
|
|
195
194
|
/**
|
|
196
|
-
* @method monitorItems
|
|
197
195
|
* @param itemsToMonitor
|
|
198
196
|
* @param requestedParameters
|
|
199
197
|
* @param timestampsToReturn
|
|
200
198
|
* @return a ClientMonitoredItemGroup
|
|
201
|
-
* @async
|
|
202
199
|
*/
|
|
203
200
|
monitorItems(
|
|
204
201
|
itemsToMonitor: ReadValueIdOptions[],
|
|
@@ -207,12 +204,6 @@ export interface ClientSubscription extends EventEmitter {
|
|
|
207
204
|
): Promise<ClientMonitoredItemGroup>;
|
|
208
205
|
|
|
209
206
|
/**
|
|
210
|
-
* @method monitorItems
|
|
211
|
-
* @param itemsToMonitor
|
|
212
|
-
* @param requestedParameters
|
|
213
|
-
* @param timestampsToReturn
|
|
214
|
-
* @param done
|
|
215
|
-
* @async
|
|
216
207
|
*/
|
|
217
208
|
monitorItems(
|
|
218
209
|
itemsToMonitor: ReadValueIdOptions[],
|
package/source/client_utils.ts
CHANGED
|
@@ -39,10 +39,7 @@ interface AnalogDataItemSnapshot {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @param session
|
|
44
|
-
* @param nodeId
|
|
45
|
-
* @param callback
|
|
42
|
+
*
|
|
46
43
|
*/
|
|
47
44
|
export async function readUAAnalogItem(
|
|
48
45
|
session: IBasicSessionTranslateBrowsePathAsyncMultiple & IBasicSessionReadAsyncMultiple,
|
package/source/index.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { SecurityPolicy, ClientSecureChannelLayer, ConnectionStrategyOptions } f
|
|
|
31
31
|
import * as utils1 from "node-opcua-utils";
|
|
32
32
|
export const utils = utils1;
|
|
33
33
|
|
|
34
|
-
import * as crypto_util1 from "node-opcua-crypto";
|
|
34
|
+
import * as crypto_util1 from "node-opcua-crypto/web";
|
|
35
35
|
export const crypto_utils = crypto_util1;
|
|
36
36
|
|
|
37
37
|
export { hexDump, LogLevel, setLogLevel, setDebugLogger, setWarningLogger, setErrorLogger } from "node-opcua-debug";
|
|
@@ -9,7 +9,7 @@ import chalk from "chalk";
|
|
|
9
9
|
import { withLock } from "@ster5/global-mutex";
|
|
10
10
|
import { assert } from "node-opcua-assert";
|
|
11
11
|
import { IOPCUASecureObjectOptions, OPCUASecureObject } from "node-opcua-common";
|
|
12
|
-
import { Certificate, makeSHA1Thumbprint, Nonce, split_der } from "node-opcua-crypto";
|
|
12
|
+
import { Certificate, makeSHA1Thumbprint, Nonce, split_der } from "node-opcua-crypto/web";
|
|
13
13
|
import { installPeriodicClockAdjustment, periodicClockAdjustment, uninstallPeriodicClockAdjustment } from "node-opcua-date-time";
|
|
14
14
|
import { checkDebugFlag, make_debugLog, make_errorLog, make_warningLog } from "node-opcua-debug";
|
|
15
15
|
|
|
@@ -871,7 +871,6 @@ export class ClientBaseImpl extends OPCUASecureObject implements OPCUAClientBase
|
|
|
871
871
|
|
|
872
872
|
/**
|
|
873
873
|
* connect the OPC-UA client to a server end point.
|
|
874
|
-
* @async
|
|
875
874
|
*/
|
|
876
875
|
public connect(endpointUrl: string): Promise<void>;
|
|
877
876
|
public connect(endpointUrl: string, callback: ErrorCallback): void;
|
|
@@ -1019,7 +1018,7 @@ export class ClientBaseImpl extends OPCUASecureObject implements OPCUAClientBase
|
|
|
1019
1018
|
/**
|
|
1020
1019
|
*
|
|
1021
1020
|
* return the endpoint information matching security mode and security policy.
|
|
1022
|
-
|
|
1021
|
+
|
|
1023
1022
|
*/
|
|
1024
1023
|
public findEndpointForSecurity(
|
|
1025
1024
|
securityMode: MessageSecurityMode,
|
|
@@ -1036,7 +1035,7 @@ export class ClientBaseImpl extends OPCUASecureObject implements OPCUAClientBase
|
|
|
1036
1035
|
/**
|
|
1037
1036
|
*
|
|
1038
1037
|
* return the endpoint information matching the specified url , security mode and security policy.
|
|
1039
|
-
|
|
1038
|
+
|
|
1040
1039
|
*/
|
|
1041
1040
|
public findEndpoint(
|
|
1042
1041
|
endpointUrl: string,
|
|
@@ -1104,7 +1103,7 @@ export class ClientBaseImpl extends OPCUASecureObject implements OPCUAClientBase
|
|
|
1104
1103
|
}
|
|
1105
1104
|
|
|
1106
1105
|
/**
|
|
1107
|
-
|
|
1106
|
+
|
|
1108
1107
|
*/
|
|
1109
1108
|
public findServers(options?: FindServersRequestLike): Promise<ApplicationDescription[]>;
|
|
1110
1109
|
public findServers(options: FindServersRequestLike, callback: ResponseCallback<ApplicationDescription[]>): void;
|
|
@@ -90,9 +90,7 @@ export class ClientMonitoredItemGroupImpl extends EventEmitter implements Client
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* @method terminate
|
|
94
93
|
* remove the MonitoredItem from its subscription
|
|
95
|
-
* @async
|
|
96
94
|
*/
|
|
97
95
|
public async terminate(): Promise<void>;
|
|
98
96
|
public terminate(done: ErrorCallback): void;
|
|
@@ -111,7 +109,7 @@ export class ClientMonitoredItemGroupImpl extends EventEmitter implements Client
|
|
|
111
109
|
|
|
112
110
|
// tslint:disable:unified-signatures
|
|
113
111
|
/**
|
|
114
|
-
|
|
112
|
+
|
|
115
113
|
*/
|
|
116
114
|
public async modify(parameters: MonitoringParametersOptions): Promise<StatusCode>;
|
|
117
115
|
public async modify(parameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn): Promise<StatusCode>;
|
|
@@ -158,7 +156,7 @@ export class ClientMonitoredItemGroupImpl extends EventEmitter implements Client
|
|
|
158
156
|
|
|
159
157
|
/**
|
|
160
158
|
* @internal
|
|
161
|
-
|
|
159
|
+
|
|
162
160
|
* Creates the monitor item (monitoring mode = Reporting)
|
|
163
161
|
* @private
|
|
164
162
|
*/
|
|
@@ -46,10 +46,10 @@ export type PrepareForMonitoringResult =
|
|
|
46
46
|
* @class ClientMonitoredItem
|
|
47
47
|
* @extends ClientMonitoredItemBase
|
|
48
48
|
*
|
|
49
|
-
* event:
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
49
|
+
* - event:
|
|
50
|
+
* - "initialized"
|
|
51
|
+
* - "err"
|
|
52
|
+
* - "changed"
|
|
53
53
|
*
|
|
54
54
|
* note: this.monitoringMode = subscription_service.MonitoringMode.Reporting;
|
|
55
55
|
*/
|
|
@@ -102,8 +102,7 @@ export class ClientMonitoredItemImpl extends EventEmitter implements ClientMonit
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
106
|
-
* @async
|
|
105
|
+
* terminate the monitored item by removing the MonitoredItem from its subscription
|
|
107
106
|
*/
|
|
108
107
|
public async terminate(): Promise<void>;
|
|
109
108
|
public terminate(done: ErrorCallback): void;
|
|
@@ -25,10 +25,7 @@ const warningLog = make_warningLog(__filename);
|
|
|
25
25
|
* Finally, ClientSidePublishEngine dispatch PublishResponse to the correct
|
|
26
26
|
* Subscription id callback
|
|
27
27
|
*
|
|
28
|
-
* @
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* @constructor
|
|
28
|
+
* @private
|
|
32
29
|
*/
|
|
33
30
|
export class ClientSidePublishEngine {
|
|
34
31
|
public static publishRequestCountInPipeline = 5;
|
|
@@ -98,7 +95,7 @@ export class ClientSidePublishEngine {
|
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
/**
|
|
101
|
-
* @
|
|
98
|
+
* @private
|
|
102
99
|
*/
|
|
103
100
|
public send_publish_request(): void {
|
|
104
101
|
if (this.isSuspended) {
|
|
@@ -127,11 +124,17 @@ export class ClientSidePublishEngine {
|
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
126
|
|
|
127
|
+
/**
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
130
|
public terminate(): void {
|
|
131
131
|
debugLog("Terminated ClientPublishEngine ");
|
|
132
132
|
this.session = null;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
/**
|
|
136
|
+
* @private
|
|
137
|
+
*/
|
|
135
138
|
public registerSubscription(subscription: ClientSubscription): void {
|
|
136
139
|
debugLog("ClientSidePublishEngine#registerSubscription ", subscription.subscriptionId);
|
|
137
140
|
|
|
@@ -152,6 +155,9 @@ export class ClientSidePublishEngine {
|
|
|
152
155
|
this.replenish_publish_request_queue();
|
|
153
156
|
}
|
|
154
157
|
|
|
158
|
+
/**
|
|
159
|
+
* @private
|
|
160
|
+
*/
|
|
155
161
|
public replenish_publish_request_queue(): void {
|
|
156
162
|
// Spec 1.03 part 4 5.13.5 Publish
|
|
157
163
|
// [..] in high latency networks, the Client may wish to pipeline Publish requests
|
|
@@ -168,9 +174,9 @@ export class ClientSidePublishEngine {
|
|
|
168
174
|
}
|
|
169
175
|
|
|
170
176
|
/**
|
|
171
|
-
* @method unregisterSubscription
|
|
172
177
|
*
|
|
173
178
|
* @param subscriptionId
|
|
179
|
+
* @private
|
|
174
180
|
*/
|
|
175
181
|
public unregisterSubscription(subscriptionId: SubscriptionId): void {
|
|
176
182
|
debugLog("ClientSidePublishEngine#unregisterSubscription ", subscriptionId);
|