Use the same parameters of OPCUAServer.
false if anonymouse connection are not allowed
The extension part of the CoreServer providing all the methods to create instances of ObjectType coming from the CoreAAS information Model. Furthermore it provides access to Structured DataType Constructors and several utility methods. More details in CoreAASExtension.
the maximum number of concurrent sessions allowed on the server
the maximum number for concurrent connection per end point
the user manager
the maximum number of subscription that can be created per server
if requestExactEndpointUrl is set to true the server will only accept createSession that have a endpointUrl that strictly matches one of the provided endpoint. This mean that if the server expose a endpoint with url such as opc.tcp://MYHOSTNAME:1234, client will not be able to reach the server with the ip address of the server. requestExactEndpointUrl = true => emulates the Prosys Server behavior whereas requestExactEndpointUrl = false => emulates the Unified Automation behavior.
The server build info
total number of bytes read by the server since startup
total number of bytes written by the server since startup
the number of connected channel on all existing end points
the number of sessions currently active
The number of active subscriptions from all sessions
true if the server has been initialized
is the server auditing ?
the publishing interval count
the number of request that have been rejected
the number of session activation requests that have been rejected
The type of server
the number of sessions that have been aborted
Number of transactions processed by the server since startup
ensure that action is performed on a valid session object,
the constructor of the response Class
create and register a new session
returns a array of currently active channels
retrieve a session by authentication token
set all the end point into a state where they do accept connections note: this method is useful for testing purpose
shutdown all server endpoints
the timeout (in ms) before the server is actually shutdown
Initiate the server by starting all its endpoints
set all the end point into a state where they do not accept further connections
note: this method is useful for testing purpose
Generated using TypeDoc
CoreServer extends OPCUAServer with all the features coming from the CoreAAS Information Model. Use this class instead of OPCUAServer of node-opcua to create your OPC UA Server supporting the Asset Administration Shell metamodel implemented in CoreAAS. example:
import { coreaasXmlFile, OPCUACertificateManager, nodesets, CoreServer } from "node-opcua-coreaas"; let xmlFiles = [nodesets.standard, coreaasXmlFile] let server = new CoreServer({ nodeset_filename: xmlFiles, port: 4848, serverCertificateManager: new OPCUACertificateManager({ automaticallyAcceptUnknownCertificate: true, rootFolder: path.join(__dirname, "../certs") }) })