Optional
allowOptional
alternateOptional
alternatealternate hostname or IP to use
Optional
buildOptional
capabilitiessupported server capabilities for the Multicast (mDNS)
Optional
certificatethe server certificate full path filename
the certificate should be in PEM format
Optional
defaultthe default secure token life time in ms.
Optional
disabletrue, if discovery service on secure channel shall be disabled
Optional
discoveryOptional
endpointsOptional
hostHost IP address or hostname where the TCP server listens for connections. If omitted, defaults to listening on all network interfaces:
Optional
hostnamethe primary hostname of the endpoint.
Optional
isif server shall raise AuditingEvent
Optional
maxthe maximum number of simultaneous sessions allowed.
Optional
maxthe maximum number authorized simultaneous connections per endpoint
Optional
nodeset_the nodeset.xml file(s) to load
node-opcua comes with pre-installed node-set files that can be used
example:
import { nodesets } from "node-opcua-nodesets";
const server = new OPCUAServer({
nodeset_filename: [
nodesets.standard,
nodesets.di,
nodesets.adi,
nodesets.machinery,
],
});
Optional
onOptional
onOptional
portthe TCP port to listen to.
Optional
privatethe server private key full path filename
This file should contains the private key that has been used to generate the server certificate file.
the private key should be in PEM format
Optional
registerstrategy used by the server to declare itself to a discovery server
Optional
resourceresource Path is a string added at the end of the url such as "/UA/Server"
Optional
securitythe possible security mode that the server will expose
Optional
securitythe possible security policies that the server will expose
Optional
serverOptional
serverServer Certificate Manager
this certificate manager will be used by the server to access and store certificates from the connecting clients
Optional
serverthe server Info
this object contains the value that will populate the Root/ObjectS/Server/ServerInfo OPCUA object in the address space.
Optional
skipskipOwnNamespace to true, if you don't want the server to create a dedicated namespace for its own (namespace=1). Use this flag if you intend to load the server own namespace from an external source.
Optional
timeoutthe HEL/ACK transaction timeout in ms.
Use a large value ( i.e 15000 ms) for slow connections or embedded devices.
Optional
transportOptional
useruser Certificate Manager this certificate manager holds the X509 certificates used by client that uses X509 certificate token to impersonate a user
Optional
useran object that implements user authentication methods
tells if the server default endpoints should allow anonymous connection.