APIs

Show:

Constructor

OPCUABaseServer

(
  • options
)

Parameters:

  • options Object
    • certificateFile
    • privateKeyFile
    • [serverInfo= null] optional

      the information used in the end point description

      • [applicationUri= "urn:NodeOPCUA-SimpleDemoServer"] String optional
      • [productUri= "SimpleDemoServer"] String optional
      • [applicationName] Text: "applicationName" optional
        {LocalizedText}
      • [gatewayServerUri= null] String optional
      • [discoveryProfileUri= null] String optional
      • [discoveryUrls= []] Array optional

Methods

_on_FindServersRequest

(
  • message
  • channel
)
private

Parameters:

  • message Object
  • channel Object

_on_GetEndpointsRequest

(
  • message
  • channel
)
private

Parameters:

  • message Object
  • channel Object

getChannels

() Array

returns a array of currently active channels

Returns:

Array:

iterate_on_signed_message_chunks

(
  • buffer
  • callback
)

Parameters:

  • buffer Object
  • callback Function
    • err Error
    • chunks Array

makeServiceFault

(
  • statusCode
  • messages
)

construct a service Fault response

Parameters:

  • statusCode Object
  • messages Object

resumeEndPoints

(
  • callback
)

set all the end point into a state where they do accept connections note: this method is useful for testing purpose

Parameters:

  • callback Function

shutdown

(
  • done
)
async

shutdown all server endPoints

Parameters:

  • done Callback
    • err Error | Null

start

(
  • done
)
async

start all registered endPoint, in parallel, and call done when all endPoints are listening.

Parameters:

  • done Callback

suspendEndPoints

(
  • callback
)

set all the end point into a state where they do not accept further connections

note: this method is useful for testing purpose

Parameters:

  • callback Function

Properties

serverType

ApplicationType

The type of server : SERVER, CLIENTANDSERVER, DISCOVERYSERVER