Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OPCUABaseServer

class

OPCUABaseServer

constructor

Hierarchy

Implements

  • ICertificateKeyPairProvider

Index

Constructors

constructor

Properties

capabilitiesForMDNS

capabilitiesForMDNS: string[]

certificateFile

certificateFile: string

endpoints

endpoints: OPCUAServerEndPoint[]

Protected options

privateKeyFile

privateKeyFile: string

serverCertificateManager

serverCertificateManager: OPCUACertificateManager

serverInfo

serverInfo: ApplicationDescription

Static defaultMaxListeners

defaultMaxListeners: number

Static makeServiceFault

makeServiceFault: makeServiceFault = makeServiceFault

Accessors

serverType

  • get serverType(): ApplicationType

Methods

_get_endpoints

  • _get_endpoints(): EndpointDescription[]

Private _on_FindServersRequest

  • _on_FindServersRequest(message: Message, channel: ServerSecureChannelLayer): void

Private _on_GetEndpointsRequest

  • _on_GetEndpointsRequest(message: Message, channel: ServerSecureChannelLayer): void

addListener

  • addListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

getCertificate

  • Returns Certificate

getCertificateChain

  • Returns Certificate

Protected getChannels

  • getChannels(): ServerSecureChannelLayer[]

getDiscoveryUrls

  • getDiscoveryUrls(): string[]

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getPrivateKey

  • getPrivateKey(): PrivateKeyPEM
  • Returns PrivateKeyPEM

getServers

  • getServers(channel: ServerSecureChannelLayer): ApplicationDescription[]

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on_request

  • on_request(message: Message, channel: ServerSecureChannelLayer): void

once

  • once(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

Protected prepare

  • prepare(message: Message, channel: ServerSecureChannelLayer): void

prependListener

  • prependListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

resumeEndPoints

  • resumeEndPoints(): Promise<void>
  • resumeEndPoints(callback: function): void

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

shutdown

  • shutdown(done: function): void

shutdownChannels

  • shutdownChannels(): Promise<void>
  • shutdownChannels(callback: function): void

start

  • start(done: function): void
  • start all registered endPoint, in parallel, and call done when all endPoints are listening.

    method

    start

    async

    Parameters

    • done: function
        • (err?: Error | null): void
        • Parameters

          • Optional err: Error | null

          Returns void

    Returns void

suspendEndPoints

  • suspendEndPoints(): Promise<void>
  • suspendEndPoints(callback: function): void

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc