APIs

Show:

OPCUAServerEndPoint a Server EndPoint. A sever end point is listening to one port

Constructor

OPCUAServerEndPoint

(
  • options
)

Parameters:

  • options Object
    • port Number

      the tcp port

    • certificateChain Buffer

      the DER certificate chain

    • privateKey String

      PEM string of the private key

    • [defaultSecureTokenLifetime=600000] Number optional

      the default secure token lifetime

    • [timeout=30000] Number optional

      the timeout for the TCP HEL/ACK transaction (in ms)

    • [maxConnections= 20] Number optional

      the maximum number of connection allowed on the TCP server socket

    • serverInfo ApplicationDescription
      • [applicationUri] String optional
      • [productUri] String optional
      • [applicationName] LocalizedText optional
      • [gatewayServerUri] String | Null optional
      • [discoveryProfileUri] String | Null optional
      • [discoveryUrls] String optional
    • objectFactory

Methods

_makeEndpointDescription

(
  • options.port
  • options.serverCertificate
  • options.securityMode
  • options.securityPolicy
  • options.securityLevel
  • options.server.applicationUri
  • options.server.productUri
  • options.server.applicationName
  • options.server.applicationType
  • options.server.gatewayServerUri
  • options.server.discoveryProfileUri
  • options.server.discoveryUrls
  • [options.resourcePath=""]
  • [options.hostname=get_fully_qualified_domain_name()]
)
EndpointDescription private

Parameters:

  • options.port Object
  • options.serverCertificate Object
  • options.securityMode Object
  • options.securityPolicy Object
  • options.securityLevel Number
  • options.server.applicationUri String
  • options.server.productUri String
  • options.server.applicationName LocalizedText

    // {text: "SampleServer", locale: null},

  • options.server.applicationType ApplicationType
  • options.server.gatewayServerUri String
  • options.server.discoveryProfileUri String
  • options.server.discoveryUrls String
  • [options.resourcePath=""] String optional

    resource Path is a string added at the end of the url such as "/UA/Server"

  • [options.hostname=get_fully_qualified_domain_name()] String optional

    default hostname

_prevent_DOS_Attack

(
  • self
  • establish_connection
)
private async

Parameters:

  • self Object
  • establish_connection Object

_registerChannel

(
  • channel
)
private

Parameters:

  • channel Object

_unregisterChannel

(
  • channel
)
private

Parameters:

  • channel Object

endpointDescriptions

() Array

returns the list of end point descriptions.

Returns:

Array:

getCertificate Returns the X509 DER form of the server certificate

() Buffer

Returns:

Buffer:

getCertificateChain Returns the X509 DER form of the server certificate

() Buffer

Returns:

Buffer:

getEndpointDescription

(
  • securityMode
  • securityPolicy
)
EndpointDescription | Null

Parameters:

  • securityMode Object
  • securityPolicy Object

Returns:

EndpointDescription | Null:

endpoint_description

getPrivateKey

() Buffer

Returns:

Buffer:

the privateKey

matching_endpoint

(
  • endpoint
  • securityMode
  • securityPolicy
)
Boolean

Parameters:

  • endpoint Object
  • securityMode Object
  • securityPolicy Object

Returns:

Boolean:

shutdown

(
  • callback
)
async

Parameters:

  • callback Function

shutdown_channel

(
  • channel
  • inner_callback
)

Parameters:

  • channel Object
  • inner_callback Object

start

(
  • callback
)
async

Parameters:

  • callback Function

Properties

currentChannelCount

Number

The number of active channel on this end point.

Events

closeChannel

Event Payload:

  • channel Object

newChannel

Event Payload:

  • channel Object