node-opcua-server 2.97.0 → 2.98.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.
Files changed (91) hide show
  1. package/package.json +43 -43
  2. package/dist/base_server.d.ts +0 -110
  3. package/dist/base_server.js +0 -491
  4. package/dist/base_server.js.map +0 -1
  5. package/dist/factory.d.ts +0 -12
  6. package/dist/factory.js +0 -24
  7. package/dist/factory.js.map +0 -1
  8. package/dist/filter/check_where_clause_on_address_space.d.ts +0 -3
  9. package/dist/filter/check_where_clause_on_address_space.js +0 -23
  10. package/dist/filter/check_where_clause_on_address_space.js.map +0 -1
  11. package/dist/filter/extract_event_fields.d.ts +0 -10
  12. package/dist/filter/extract_event_fields.js +0 -18
  13. package/dist/filter/extract_event_fields.js.map +0 -1
  14. package/dist/helper.d.ts +0 -10
  15. package/dist/helper.js +0 -76
  16. package/dist/helper.js.map +0 -1
  17. package/dist/history_server_capabilities.d.ts +0 -35
  18. package/dist/history_server_capabilities.js +0 -44
  19. package/dist/history_server_capabilities.js.map +0 -1
  20. package/dist/i_channel_data.d.ts +0 -13
  21. package/dist/i_channel_data.js +0 -3
  22. package/dist/i_channel_data.js.map +0 -1
  23. package/dist/i_register_server_manager.d.ts +0 -16
  24. package/dist/i_register_server_manager.js +0 -3
  25. package/dist/i_register_server_manager.js.map +0 -1
  26. package/dist/i_server_side_publish_engine.d.ts +0 -36
  27. package/dist/i_server_side_publish_engine.js +0 -50
  28. package/dist/i_server_side_publish_engine.js.map +0 -1
  29. package/dist/i_socket_data.d.ts +0 -11
  30. package/dist/i_socket_data.js +0 -3
  31. package/dist/i_socket_data.js.map +0 -1
  32. package/dist/index.d.ts +0 -16
  33. package/dist/index.js +0 -33
  34. package/dist/index.js.map +0 -1
  35. package/dist/monitored_item.d.ts +0 -188
  36. package/dist/monitored_item.js +0 -1113
  37. package/dist/monitored_item.js.map +0 -1
  38. package/dist/node_sampler.d.ts +0 -3
  39. package/dist/node_sampler.js +0 -80
  40. package/dist/node_sampler.js.map +0 -1
  41. package/dist/opcua_server.d.ts +0 -747
  42. package/dist/opcua_server.js +0 -2429
  43. package/dist/opcua_server.js.map +0 -1
  44. package/dist/queue.d.ts +0 -11
  45. package/dist/queue.js +0 -72
  46. package/dist/queue.js.map +0 -1
  47. package/dist/register_server_manager.d.ts +0 -96
  48. package/dist/register_server_manager.js +0 -585
  49. package/dist/register_server_manager.js.map +0 -1
  50. package/dist/register_server_manager_hidden.d.ts +0 -17
  51. package/dist/register_server_manager_hidden.js +0 -28
  52. package/dist/register_server_manager_hidden.js.map +0 -1
  53. package/dist/register_server_manager_mdns_only.d.ts +0 -22
  54. package/dist/register_server_manager_mdns_only.js +0 -56
  55. package/dist/register_server_manager_mdns_only.js.map +0 -1
  56. package/dist/sampling_func.d.ts +0 -3
  57. package/dist/sampling_func.js +0 -3
  58. package/dist/sampling_func.js.map +0 -1
  59. package/dist/server_capabilities.d.ts +0 -148
  60. package/dist/server_capabilities.js +0 -102
  61. package/dist/server_capabilities.js.map +0 -1
  62. package/dist/server_end_point.d.ts +0 -185
  63. package/dist/server_end_point.js +0 -841
  64. package/dist/server_end_point.js.map +0 -1
  65. package/dist/server_engine.d.ts +0 -318
  66. package/dist/server_engine.js +0 -1775
  67. package/dist/server_engine.js.map +0 -1
  68. package/dist/server_publish_engine.d.ts +0 -113
  69. package/dist/server_publish_engine.js +0 -542
  70. package/dist/server_publish_engine.js.map +0 -1
  71. package/dist/server_publish_engine_for_orphan_subscriptions.d.ts +0 -16
  72. package/dist/server_publish_engine_for_orphan_subscriptions.js +0 -52
  73. package/dist/server_publish_engine_for_orphan_subscriptions.js.map +0 -1
  74. package/dist/server_session.d.ts +0 -185
  75. package/dist/server_session.js +0 -758
  76. package/dist/server_session.js.map +0 -1
  77. package/dist/server_subscription.d.ts +0 -421
  78. package/dist/server_subscription.js +0 -1348
  79. package/dist/server_subscription.js.map +0 -1
  80. package/dist/sessions_compatible_for_transfer.d.ts +0 -2
  81. package/dist/sessions_compatible_for_transfer.js +0 -40
  82. package/dist/sessions_compatible_for_transfer.js.map +0 -1
  83. package/dist/user_manager.d.ts +0 -32
  84. package/dist/user_manager.js +0 -99
  85. package/dist/user_manager.js.map +0 -1
  86. package/dist/user_manager_ua.d.ts +0 -3
  87. package/dist/user_manager_ua.js +0 -40
  88. package/dist/user_manager_ua.js.map +0 -1
  89. package/dist/validate_filter.d.ts +0 -5
  90. package/dist/validate_filter.js +0 -82
  91. package/dist/validate_filter.js.map +0 -1
@@ -1,185 +0,0 @@
1
- /**
2
- * @module node-opcua-server
3
- */
4
- /// <reference types="node" />
5
- /// <reference types="node" />
6
- import { EventEmitter } from "events";
7
- import { AddressSpace, ContinuationPointManager, ISessionBase, UADynamicVariableArray, UASessionDiagnosticsVariable, UASessionSecurityDiagnostics, DTSessionDiagnostics, DTSessionSecurityDiagnostics, IUserManager } from "node-opcua-address-space";
8
- import { ISessionContext } from "node-opcua-address-space-base";
9
- import { SessionDiagnosticsDataType, SessionSecurityDiagnosticsDataType, SubscriptionDiagnosticsDataType } from "node-opcua-common";
10
- import { NodeId } from "node-opcua-nodeid";
11
- import { ObjectRegistry } from "node-opcua-object-registry";
12
- import { StatusCode } from "node-opcua-status-code";
13
- import { WatchDog } from "node-opcua-utils";
14
- import { ISubscriber, IWatchdogData2 } from "node-opcua-utils";
15
- import { IServerSession, IServerSessionBase, ServerSecureChannelLayer } from "node-opcua-secure-channel";
16
- import { ApplicationDescription, UserIdentityToken, CreateSubscriptionRequestOptions, EndpointDescription } from "node-opcua-types";
17
- import { ServerSidePublishEngine } from "./server_publish_engine";
18
- import { Subscription } from "./server_subscription";
19
- import { ServerEngine } from "./server_engine";
20
- export type SessionStatus = "new" | "active" | "screwed" | "disposed" | "closed";
21
- /**
22
- *
23
- * A Server session object.
24
- *
25
- * **from OPCUA Spec 1.02:**
26
- *
27
- * * Sessions are created to be independent of the underlying communications connection. Therefore, if a communication
28
- * connection fails, the Session is not immediately affected. The exact mechanism to recover from an underlying
29
- * communication connection error depends on the SecureChannel mapping as described in Part 6.
30
- *
31
- * * Sessions are terminated by the Server automatically if the Client fails to issue a Service request on the Session
32
- * within the timeout period negotiated by the Server in the CreateSession Service response. This protects the Server
33
- * against Client failures and against situations where a failed underlying connection cannot be re-established.
34
- *
35
- * * Clients shall be prepared to submit requests in a timely manner to prevent the Session from closing automatically.
36
- *
37
- * * Clients may explicitly terminate Sessions using the CloseSession Service.
38
- *
39
- * * When a Session is terminated, all outstanding requests on the Session are aborted and BadSessionClosed StatusCodes
40
- * are returned to the Client. In addition, the Server deletes the entry for the Client from its
41
- * SessionDiagnosticsArray Variable and notifies any other Clients who were subscribed to this entry.
42
- *
43
- */
44
- export declare class ServerSession extends EventEmitter implements ISubscriber, ISessionBase, IServerSession, IServerSessionBase {
45
- static registry: ObjectRegistry;
46
- static maxPublishRequestInQueue: number;
47
- __status: SessionStatus;
48
- parent: ServerEngine;
49
- authenticationToken: NodeId;
50
- nodeId: NodeId;
51
- sessionName: string;
52
- publishEngine: ServerSidePublishEngine;
53
- sessionObject: any;
54
- readonly creationDate: Date;
55
- sessionTimeout: number;
56
- sessionDiagnostics?: UASessionDiagnosticsVariable<DTSessionDiagnostics>;
57
- sessionSecurityDiagnostics?: UASessionSecurityDiagnostics<DTSessionSecurityDiagnostics>;
58
- subscriptionDiagnosticsArray?: UADynamicVariableArray<SubscriptionDiagnosticsDataType>;
59
- channel?: ServerSecureChannelLayer;
60
- nonce?: Buffer;
61
- userIdentityToken?: UserIdentityToken;
62
- clientDescription?: ApplicationDescription;
63
- channelId?: number | null;
64
- continuationPointManager: ContinuationPointManager;
65
- sessionContext: ISessionContext;
66
- _watchDog?: WatchDog;
67
- _watchDogData?: IWatchdogData2;
68
- keepAlive: () => void;
69
- private _registeredNodesCounter;
70
- private _registeredNodes;
71
- private _registeredNodesInv;
72
- private _cumulatedSubscriptionCount;
73
- private _sessionDiagnostics?;
74
- private _sessionSecurityDiagnostics?;
75
- private channel_abort_event_handler;
76
- constructor(parent: ServerEngine, userManager: IUserManager, sessionTimeout: number);
77
- getSessionId(): NodeId;
78
- endpoint?: EndpointDescription;
79
- getEndpointDescription(): EndpointDescription;
80
- dispose(): void;
81
- get clientConnectionTime(): Date;
82
- /**
83
- * return the number of milisecond since last session transaction occurs from client
84
- * the first transaction is the creation of the session
85
- */
86
- get clientLastContactTime(): number;
87
- get status(): SessionStatus;
88
- set status(value: SessionStatus);
89
- get addressSpace(): AddressSpace | null;
90
- get currentPublishRequestInQueue(): number;
91
- updateClientLastContactTime(): void;
92
- /**
93
- * @method onClientSeen
94
- * required for watch dog
95
- * @param currentTime {DateTime}
96
- * @private
97
- */
98
- onClientSeen(): void;
99
- incrementTotalRequestCount(): void;
100
- incrementRequestTotalCounter(counterName: string): void;
101
- incrementRequestErrorCounter(counterName: string): void;
102
- /**
103
- * returns rootFolder.objects.server.serverDiagnostics.sessionsDiagnosticsSummary.sessionDiagnosticsArray
104
- */
105
- getSessionDiagnosticsArray(): UADynamicVariableArray<SessionDiagnosticsDataType>;
106
- /**
107
- * returns rootFolder.objects.server.serverDiagnostics.sessionsDiagnosticsSummary.sessionSecurityDiagnosticsArray
108
- */
109
- getSessionSecurityDiagnosticsArray(): UADynamicVariableArray<SessionSecurityDiagnosticsDataType>;
110
- /**
111
- * number of active subscriptions
112
- */
113
- get currentSubscriptionCount(): number;
114
- /**
115
- * number of subscriptions ever created since this object is live
116
- */
117
- get cumulatedSubscriptionCount(): number;
118
- /**
119
- * number of monitored items
120
- */
121
- get currentMonitoredItemCount(): number;
122
- /**
123
- * retrieve an existing subscription by subscriptionId
124
- * @method getSubscription
125
- * @param subscriptionId {Number}
126
- * @return {Subscription}
127
- */
128
- getSubscription(subscriptionId: number): Subscription | null;
129
- /**
130
- * @method deleteSubscription
131
- * @param subscriptionId {Number}
132
- * @return {StatusCode}
133
- */
134
- deleteSubscription(subscriptionId: number): StatusCode;
135
- /**
136
- * close a ServerSession, this will also delete the subscriptions if the flag is set.
137
- *
138
- * Spec extract:
139
- *
140
- * If a Client invokes the CloseSession Service then all Subscriptions associated with the Session are also deleted
141
- * if the deleteSubscriptions flag is set to TRUE. If a Server terminates a Session for any other reason,
142
- * Subscriptions associated with the Session, are not deleted. Each Subscription has its own lifetime to protect
143
- * against data loss in the case of a Session termination. In these cases, the Subscription can be reassigned to
144
- * another Client before its lifetime expires.
145
- *
146
- * @method close
147
- * @param deleteSubscriptions : should we delete subscription ?
148
- * @param [reason = "CloseSession"] the reason for closing the session
149
- * (shall be "Timeout", "Terminated" or "CloseSession")
150
- *
151
- */
152
- close(deleteSubscriptions: boolean, reason: string): void;
153
- registerNode(nodeId: NodeId): NodeId;
154
- unRegisterNode(aliasNodeId: NodeId): void;
155
- resolveRegisteredNode(aliasNodeId: NodeId): NodeId;
156
- /**
157
- * true if the underlying channel has been closed or aborted...
158
- */
159
- get aborted(): boolean;
160
- createSubscription(parameters: CreateSubscriptionRequestOptions): Subscription;
161
- _attach_channel(channel: ServerSecureChannelLayer): void;
162
- _detach_channel(): void;
163
- _exposeSubscriptionDiagnostics(subscription: Subscription): void;
164
- _unexposeSubscriptionDiagnostics(subscription: Subscription): void;
165
- /**
166
- * @method watchdogReset
167
- * used as a callback for the Watchdog
168
- * @private
169
- */
170
- watchdogReset(): void;
171
- private _createSessionObjectInAddressSpace;
172
- resendMonitoredItemInitialValues(): Promise<void>;
173
- /**
174
- *
175
- * @private
176
- */
177
- private _removeSessionObjectFromAddressSpace;
178
- /**
179
- *
180
- * @private
181
- */
182
- private _getSubscriptionDiagnosticsArray;
183
- private assignSubscription;
184
- private _deleteSubscriptions;
185
- }