node-opcua-client 2.132.0 → 2.133.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 +5 -19
- package/dist/client_base.js.map +1 -1
- package/dist/client_session.d.ts +10 -75
- 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/private/client_base_impl.d.ts +3 -4
- package/dist/private/client_base_impl.js +2 -2
- package/dist/private/client_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 +11 -76
- 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 +2 -8
- 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/package.json +42 -42
- package/source/client_base.ts +7 -19
- package/source/client_session.ts +19 -89
- 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/private/client_base_impl.ts +3 -4
- 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 +48 -101
- package/source/private/client_subscription_impl.ts +1 -1
- package/source/private/opcua_client_impl.ts +5 -16
- package/source/private/reconnection/client_subscription_reconnection.ts +1 -1
- package/source/tools/findservers.ts +0 -4
|
@@ -418,8 +418,6 @@ export class OPCUAClientImpl extends ClientBaseImpl implements OPCUAClient {
|
|
|
418
418
|
|
|
419
419
|
/**
|
|
420
420
|
* create and activate a new session
|
|
421
|
-
* @async
|
|
422
|
-
* @method createSession
|
|
423
421
|
*
|
|
424
422
|
*
|
|
425
423
|
* @example
|
|
@@ -530,17 +528,13 @@ export class OPCUAClientImpl extends ClientBaseImpl implements OPCUAClient {
|
|
|
530
528
|
}
|
|
531
529
|
|
|
532
530
|
/**
|
|
533
|
-
*
|
|
534
|
-
* @method closeSession
|
|
535
|
-
* @async
|
|
536
|
-
* @param session - the created client session
|
|
537
|
-
* @param deleteSubscriptions - whether to delete subscriptions or not
|
|
531
|
+
* close a session
|
|
538
532
|
*/
|
|
539
533
|
public closeSession(session: ClientSession, deleteSubscriptions: boolean): Promise<void>;
|
|
540
534
|
public closeSession(session: ClientSession, deleteSubscriptions: boolean, callback: (err?: Error) => void): void;
|
|
535
|
+
|
|
541
536
|
/**
|
|
542
|
-
* @
|
|
543
|
-
* @param args
|
|
537
|
+
* @internal
|
|
544
538
|
*/
|
|
545
539
|
public closeSession(...args: any[]): any {
|
|
546
540
|
if (this._retryCreateSessionTimer) {
|
|
@@ -677,7 +671,7 @@ export class OPCUAClientImpl extends ClientBaseImpl implements OPCUAClient {
|
|
|
677
671
|
|
|
678
672
|
/**
|
|
679
673
|
* transfer session to this client
|
|
680
|
-
|
|
674
|
+
|
|
681
675
|
* @param session
|
|
682
676
|
* @param callback
|
|
683
677
|
* @return {*}
|
|
@@ -1222,8 +1216,7 @@ export class OPCUAClientImpl extends ClientBaseImpl implements OPCUAClient {
|
|
|
1222
1216
|
// tslint:disable:max-line-length
|
|
1223
1217
|
const thenify = require("thenify");
|
|
1224
1218
|
/**
|
|
1225
|
-
|
|
1226
|
-
* @async
|
|
1219
|
+
|
|
1227
1220
|
*
|
|
1228
1221
|
* @example
|
|
1229
1222
|
* // create a anonymous session
|
|
@@ -1242,13 +1235,9 @@ const thenify = require("thenify");
|
|
|
1242
1235
|
OPCUAClientImpl.prototype.createSession = thenify.withCallback(OPCUAClientImpl.prototype.createSession);
|
|
1243
1236
|
OPCUAClientImpl.prototype.createSession2 = thenify.withCallback(OPCUAClientImpl.prototype.createSession2);
|
|
1244
1237
|
/**
|
|
1245
|
-
* @method changeSessionIdentity
|
|
1246
|
-
* @async
|
|
1247
1238
|
*/
|
|
1248
1239
|
OPCUAClientImpl.prototype.changeSessionIdentity = thenify.withCallback(OPCUAClientImpl.prototype.changeSessionIdentity);
|
|
1249
1240
|
/**
|
|
1250
|
-
* @method closeSession
|
|
1251
|
-
* @async
|
|
1252
1241
|
* @example
|
|
1253
1242
|
* const session = await client.createSession();
|
|
1254
1243
|
* await client.closeSession(session);
|
|
@@ -37,7 +37,7 @@ async function adjustMonitoredItemNodeIds(subscription: ClientSubscription, oldM
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* utility function to recreate new subscription
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
*/
|
|
42
42
|
export async function recreateSubscriptionAndMonitoredItem(_subscription: ClientSubscription): Promise<void> {
|
|
43
43
|
debugLog("recreateSubscriptionAndMonitoredItem", _subscription.subscriptionId.toString());
|
|
@@ -14,10 +14,6 @@ export interface FindServerResults {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* extract the server endpoints exposed by a discovery server
|
|
17
|
-
* @method findServers
|
|
18
|
-
* @async
|
|
19
|
-
* @param discoveryServerEndpointUri
|
|
20
|
-
* @param callback
|
|
21
17
|
*/
|
|
22
18
|
export function findServers(
|
|
23
19
|
discoveryServerEndpointUri: string,
|