OptionalapplicationOptionalapplicationthe application Uri
@default: urn:${hostname}:${applicationName}
OptionalcertificateThe client certificate pem file.
Note:
OptionalcertificateAn optional in-memory certificate/key provider.
When supplied, the client skips disk-based certificate path resolution and uses the provider directly.
OptionalclientThe certificate Manager
If not specified your Client will create and use a default Certificate manager.
You will have pass your own OPCUACertificateManager if you are in one of the following situation:
Optionalclienta client name string that will be used to generate session names.
OptionalconnectionOptionaldefaultdefault secure token lifetime in ms
OptionaldefaultdefaultTransactionTimeout
Optionaldiscoverydiscovery url:
OptionalkeepThe number of milliseconds that the client should wait until it sends a keep alive message to the server.
If not specified, node-opcua will use a suitable default value.
Tips:
Optionalkeepif set to true, pending session will not be automatically closed when disconnect is called
OptionalkeepWhen set to true, the session will send a Read request on a regular interval specified by the keepAliveInterval.
This ensure that the connection will remain active and that the socket will not timeout.
When the keepAlive manager is not able to perform the Read operation, then it breaks the connection and force the client to enter a reconnection phase.
On some network settings and operating system, it might be quite tricky to detect when the communication as the the
Tips:
You don't ned to use keepSessionAlive: true when your session have a subscription active.
A OPCUA subscription has already a built-in keepAlive mechanism that can replace the regular Read pooling
offered by this flag.
Optionalprivateclient private key pem file. Note:
Optionalsecuritythe security mode
Optionalsecuritythe security policy
Optionalserverthe server certificate or certificate chain.
Optionaltokenif not specify or set to 0 , token renewal will happen around 75% of the defaultSecureTokenLifetime
OptionaltransportOptional factory for the underlying client transport. When omitted, the
secure-channel layer uses defaultClientTransportFactory (a Node-only
TCP transport). Consumers that need a different transport — browser
WebSocket, in-process stub, tracing wrapper — pass a factory here and
it is threaded through to ClientSecureChannelLayer.
Optionaltransportspecify some transport settings that will override the default transport settings for the end point.
Optionaltransporttransport timeout
the client application name