node-opcua-server 2.64.0 → 2.64.1

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 (57) hide show
  1. package/dist/I_register_server_manager.d.ts +15 -0
  2. package/dist/I_register_server_manager.js +3 -0
  3. package/dist/I_register_server_manager.js.map +1 -0
  4. package/dist/base_server.d.ts +110 -110
  5. package/dist/base_server.js +473 -473
  6. package/dist/continuation_point_manager.d.ts +18 -0
  7. package/dist/continuation_point_manager.js +84 -0
  8. package/dist/continuation_point_manager.js.map +1 -0
  9. package/dist/factory.d.ts +12 -12
  10. package/dist/factory.js +23 -23
  11. package/dist/history_server_capabilities.d.ts +35 -35
  12. package/dist/history_server_capabilities.js +43 -43
  13. package/dist/i_channel_data.d.ts +13 -13
  14. package/dist/i_channel_data.js +2 -2
  15. package/dist/i_register_server_manager.d.ts +16 -16
  16. package/dist/i_register_server_manager.js +2 -2
  17. package/dist/i_server_side_publish_engine.d.ts +36 -36
  18. package/dist/i_server_side_publish_engine.js +49 -49
  19. package/dist/i_socket_data.d.ts +11 -11
  20. package/dist/i_socket_data.js +2 -2
  21. package/dist/index.d.ts +14 -14
  22. package/dist/index.js +26 -26
  23. package/dist/monitored_item.d.ts +176 -176
  24. package/dist/monitored_item.js +998 -998
  25. package/dist/node_sampler.d.ts +3 -3
  26. package/dist/node_sampler.js +75 -75
  27. package/dist/opcua_server.d.ts +654 -653
  28. package/dist/opcua_server.js +2389 -2366
  29. package/dist/opcua_server.js.map +1 -1
  30. package/dist/queue.d.ts +11 -11
  31. package/dist/queue.js +71 -71
  32. package/dist/register_server_manager.d.ts +95 -95
  33. package/dist/register_server_manager.js +584 -584
  34. package/dist/register_server_manager_hidden.d.ts +17 -17
  35. package/dist/register_server_manager_hidden.js +27 -27
  36. package/dist/register_server_manager_mdns_only.d.ts +22 -22
  37. package/dist/register_server_manager_mdns_only.js +57 -57
  38. package/dist/server_capabilities.d.ts +61 -61
  39. package/dist/server_capabilities.js +108 -108
  40. package/dist/server_end_point.d.ts +183 -183
  41. package/dist/server_end_point.js +816 -816
  42. package/dist/server_engine.d.ts +315 -315
  43. package/dist/server_engine.js +1678 -1678
  44. package/dist/server_publish_engine.d.ts +112 -112
  45. package/dist/server_publish_engine.js +530 -530
  46. package/dist/server_publish_engine_for_orphan_subscriptions.d.ts +16 -16
  47. package/dist/server_publish_engine_for_orphan_subscriptions.js +49 -49
  48. package/dist/server_session.d.ts +180 -180
  49. package/dist/server_session.js +737 -737
  50. package/dist/server_subscription.d.ts +395 -395
  51. package/dist/server_subscription.js +1316 -1316
  52. package/dist/sessions_compatible_for_transfer.d.ts +2 -2
  53. package/dist/sessions_compatible_for_transfer.js +36 -36
  54. package/dist/validate_filter.d.ts +5 -5
  55. package/dist/validate_filter.js +60 -60
  56. package/package.json +87 -87
  57. package/source/opcua_server.ts +28 -1
@@ -0,0 +1,15 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * @module node-opcua-server
4
+ */
5
+ import { EventEmitter } from "events";
6
+ export interface IRegisterServerManager extends EventEmitter {
7
+ discoveryServerEndpointUrl: string;
8
+ start(callback: (err?: Error) => void): void;
9
+ stop(callback: (err?: Error) => void): void;
10
+ dispose(): void;
11
+ on(eventName: "serverRegistrationPending", eventHandler: () => void): this;
12
+ on(eventName: "serverRegistered", eventHandler: () => void): this;
13
+ on(eventName: "serverRegistrationRenewed", eventHandler: () => void): this;
14
+ on(eventName: "serverUnregistered", eventHandler: () => void): this;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=I_register_server_manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"I_register_server_manager.js","sourceRoot":"","sources":["../source/I_register_server_manager.ts"],"names":[],"mappings":""}
@@ -1,110 +1,110 @@
1
- import { OPCUACertificateManager } from "node-opcua-certificate-manager";
2
- import { IOPCUASecureObjectOptions, OPCUASecureObject } from "node-opcua-common";
3
- import { Message, ServerSecureChannelLayer } from "node-opcua-secure-channel";
4
- import { ApplicationType } from "node-opcua-service-endpoints";
5
- import { ApplicationDescription } from "node-opcua-service-endpoints";
6
- import { ServiceFault } from "node-opcua-service-secure-channel";
7
- import { StatusCode } from "node-opcua-status-code";
8
- import { ApplicationDescriptionOptions } from "node-opcua-types";
9
- import { EndpointDescription } from "node-opcua-types";
10
- import { OPCUAServerEndPoint } from "./server_end_point";
11
- /**
12
- *
13
- */
14
- export interface OPCUABaseServerOptions extends IOPCUASecureObjectOptions {
15
- /**
16
- * the information used in the end point description
17
- */
18
- serverInfo?: ApplicationDescriptionOptions;
19
- /**
20
- * the server Certificate Manager
21
- */
22
- serverCertificateManager?: OPCUACertificateManager;
23
- }
24
- /**
25
- * @class OPCUABaseServer
26
- * @constructor
27
- */
28
- export declare class OPCUABaseServer extends OPCUASecureObject {
29
- static makeServiceFault: typeof makeServiceFault;
30
- /**
31
- * The type of server
32
- */
33
- get serverType(): ApplicationType;
34
- serverInfo: ApplicationDescription;
35
- endpoints: OPCUAServerEndPoint[];
36
- readonly serverCertificateManager: OPCUACertificateManager;
37
- capabilitiesForMDNS: string[];
38
- protected _preInitTask: any[];
39
- protected options: OPCUABaseServerOptions;
40
- constructor(options?: OPCUABaseServerOptions);
41
- protected createDefaultCertificate(): Promise<void>;
42
- initializeCM(): Promise<void>;
43
- /**
44
- * start all registered endPoint, in parallel, and call done when all endPoints are listening.
45
- * @method start
46
- * @async
47
- * @param {callback} done
48
- */
49
- start(done: (err?: Error | null) => void): void;
50
- protected performPreInitialization(): Promise<void>;
51
- protected startAsync(): Promise<void>;
52
- /**
53
- * shutdown all server endPoints
54
- * @async
55
- */
56
- shutdown(done: (err?: Error) => void): void;
57
- shutdownChannels(): Promise<void>;
58
- shutdownChannels(callback: (err?: Error | null) => void): void;
59
- /**
60
- * @private
61
- */
62
- on_request(message: Message, channel: ServerSecureChannelLayer): void;
63
- /**
64
- * @private
65
- */
66
- _get_endpoints(endpointUrl?: string | null): EndpointDescription[];
67
- /**
68
- * get one of the possible endpointUrl
69
- */
70
- getEndpointUrl(): string;
71
- getDiscoveryUrls(): string[];
72
- getServers(channel: ServerSecureChannelLayer): ApplicationDescription[];
73
- /**
74
- * set all the end point into a state where they do not accept further connections
75
- *
76
- * note:
77
- * this method is useful for testing purpose
78
- *
79
- */
80
- suspendEndPoints(): Promise<void>;
81
- suspendEndPoints(callback: (err?: Error) => void): void;
82
- /**
83
- * set all the end point into a state where they do accept connections
84
- * note:
85
- * this method is useful for testing purpose
86
- */
87
- resumeEndPoints(): Promise<void>;
88
- resumeEndPoints(callback: (err?: Error) => void): void;
89
- protected prepare(message: Message, channel: ServerSecureChannelLayer): void;
90
- /**
91
- * @private
92
- */
93
- protected _on_GetEndpointsRequest(message: Message, channel: ServerSecureChannelLayer): void;
94
- /**
95
- * @private
96
- */
97
- protected _on_FindServersRequest(message: Message, channel: ServerSecureChannelLayer): void;
98
- /**
99
- * returns a array of currently active channels
100
- */
101
- protected getChannels(): ServerSecureChannelLayer[];
102
- }
103
- /**
104
- * construct a service Fault response
105
- * @method makeServiceFault
106
- * @param statusCode
107
- * @param messages
108
- */
109
- declare function makeServiceFault(statusCode: StatusCode, messages: string[]): ServiceFault;
110
- export {};
1
+ import { OPCUACertificateManager } from "node-opcua-certificate-manager";
2
+ import { IOPCUASecureObjectOptions, OPCUASecureObject } from "node-opcua-common";
3
+ import { Message, ServerSecureChannelLayer } from "node-opcua-secure-channel";
4
+ import { ApplicationType } from "node-opcua-service-endpoints";
5
+ import { ApplicationDescription } from "node-opcua-service-endpoints";
6
+ import { ServiceFault } from "node-opcua-service-secure-channel";
7
+ import { StatusCode } from "node-opcua-status-code";
8
+ import { ApplicationDescriptionOptions } from "node-opcua-types";
9
+ import { EndpointDescription } from "node-opcua-types";
10
+ import { OPCUAServerEndPoint } from "./server_end_point";
11
+ /**
12
+ *
13
+ */
14
+ export interface OPCUABaseServerOptions extends IOPCUASecureObjectOptions {
15
+ /**
16
+ * the information used in the end point description
17
+ */
18
+ serverInfo?: ApplicationDescriptionOptions;
19
+ /**
20
+ * the server Certificate Manager
21
+ */
22
+ serverCertificateManager?: OPCUACertificateManager;
23
+ }
24
+ /**
25
+ * @class OPCUABaseServer
26
+ * @constructor
27
+ */
28
+ export declare class OPCUABaseServer extends OPCUASecureObject {
29
+ static makeServiceFault: typeof makeServiceFault;
30
+ /**
31
+ * The type of server
32
+ */
33
+ get serverType(): ApplicationType;
34
+ serverInfo: ApplicationDescription;
35
+ endpoints: OPCUAServerEndPoint[];
36
+ readonly serverCertificateManager: OPCUACertificateManager;
37
+ capabilitiesForMDNS: string[];
38
+ protected _preInitTask: any[];
39
+ protected options: OPCUABaseServerOptions;
40
+ constructor(options?: OPCUABaseServerOptions);
41
+ protected createDefaultCertificate(): Promise<void>;
42
+ initializeCM(): Promise<void>;
43
+ /**
44
+ * start all registered endPoint, in parallel, and call done when all endPoints are listening.
45
+ * @method start
46
+ * @async
47
+ * @param {callback} done
48
+ */
49
+ start(done: (err?: Error | null) => void): void;
50
+ protected performPreInitialization(): Promise<void>;
51
+ protected startAsync(): Promise<void>;
52
+ /**
53
+ * shutdown all server endPoints
54
+ * @async
55
+ */
56
+ shutdown(done: (err?: Error) => void): void;
57
+ shutdownChannels(): Promise<void>;
58
+ shutdownChannels(callback: (err?: Error | null) => void): void;
59
+ /**
60
+ * @private
61
+ */
62
+ on_request(message: Message, channel: ServerSecureChannelLayer): void;
63
+ /**
64
+ * @private
65
+ */
66
+ _get_endpoints(endpointUrl?: string | null): EndpointDescription[];
67
+ /**
68
+ * get one of the possible endpointUrl
69
+ */
70
+ getEndpointUrl(): string;
71
+ getDiscoveryUrls(): string[];
72
+ getServers(channel: ServerSecureChannelLayer): ApplicationDescription[];
73
+ /**
74
+ * set all the end point into a state where they do not accept further connections
75
+ *
76
+ * note:
77
+ * this method is useful for testing purpose
78
+ *
79
+ */
80
+ suspendEndPoints(): Promise<void>;
81
+ suspendEndPoints(callback: (err?: Error) => void): void;
82
+ /**
83
+ * set all the end point into a state where they do accept connections
84
+ * note:
85
+ * this method is useful for testing purpose
86
+ */
87
+ resumeEndPoints(): Promise<void>;
88
+ resumeEndPoints(callback: (err?: Error) => void): void;
89
+ protected prepare(message: Message, channel: ServerSecureChannelLayer): void;
90
+ /**
91
+ * @private
92
+ */
93
+ protected _on_GetEndpointsRequest(message: Message, channel: ServerSecureChannelLayer): void;
94
+ /**
95
+ * @private
96
+ */
97
+ protected _on_FindServersRequest(message: Message, channel: ServerSecureChannelLayer): void;
98
+ /**
99
+ * returns a array of currently active channels
100
+ */
101
+ protected getChannels(): ServerSecureChannelLayer[];
102
+ }
103
+ /**
104
+ * construct a service Fault response
105
+ * @method makeServiceFault
106
+ * @param statusCode
107
+ * @param messages
108
+ */
109
+ declare function makeServiceFault(statusCode: StatusCode, messages: string[]): ServiceFault;
110
+ export {};