Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

Hierarchy

Index

Constructors

constructor

Properties

Readonly applicationName

applicationName: string

Readonly bytesRead

bytesRead: number

Readonly bytesWritten

bytesWritten: number

Readonly certificateFile

certificateFile: string

Readonly clientCertificateManager

clientCertificateManager: OPCUACertificateManager

certificate Manager

Readonly clientName

clientName: string

Readonly connectionStrategy

connectionStrategy: ConnectionStrategy

Readonly defaultSecureTokenLifetime

defaultSecureTokenLifetime: number

Optional Readonly endpoint

Readonly endpointUrl

endpointUrl: string

Readonly isReconnecting

isReconnecting: boolean

Readonly keepPendingSessionsOnDisconnect

keepPendingSessionsOnDisconnect: boolean

Readonly keepSessionAlive

keepSessionAlive: boolean

Readonly knowsServerEndpoint

knowsServerEndpoint: boolean

Readonly privateKeyFile

privateKeyFile: string

Readonly protocolVersion

protocolVersion: 0

Readonly reconnectOnFailure

reconnectOnFailure: boolean

Readonly securityMode

securityMode: MessageSecurityMode

Readonly securityPolicy

securityPolicy: SecurityPolicy

Optional Readonly serverCertificate

serverCertificate: Buffer

Readonly tokenRenewalInterval

tokenRenewalInterval: number

Readonly transactionsPerformed

transactionsPerformed: number

Accessors

Static minimumRevisedSessionTimeout

  • get minimumRevisedSessionTimeout(): number
  • set minimumRevisedSessionTimeout(minimumRevisedSessionTimeout: number): void
  • Returns number

  • Parameters

    • minimumRevisedSessionTimeout: number

    Returns void

Methods

changeSessionIdentity

  • Parameters

    Returns Promise<void>

  • Parameters

    • session: ClientSession
    • userIdentityInfo: UserIdentityInfo
    • callback: (err?: Error) => void
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

closeSession

  • closeSession(session: ClientSession, deleteSubscriptions: boolean): Promise<void>
  • closeSession(session: ClientSession, deleteSubscriptions: boolean, callback: (err?: Error) => void): void
  • Parameters

    Returns Promise<void>

  • Parameters

    • session: ClientSession
    • deleteSubscriptions: boolean
    • callback: (err?: Error) => void
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

connect

  • connect(endpointUrl: string): Promise<void>
  • connect(endpointUrl: string, callback: ErrorCallback): void
  • Parameters

    • endpointUrl: string

    Returns Promise<void>

  • Parameters

    Returns void

createDefaultCertificate

  • createDefaultCertificate(): Promise<void>
  • Returns Promise<void>

createSession

  • Parameters

    Returns Promise<ClientSession>

  • Parameters

    Returns void

  • Parameters

    Returns void

createSession2

  • Parameters

    Returns Promise<ClientSession>

  • Parameters

    Returns void

  • Parameters

    Returns void

disconnect

  • disconnect(): Promise<void>
  • disconnect(callback: ErrorCallback): void
  • causes client to close and disconnect the communication with server

    Returns Promise<void>

  • Parameters

    Returns void

findEndpointForSecurity

findServers

findServersOnNetwork

getCertificate

  • getCertificate(): Buffer

getCertificateChain

  • getCertificateChain(): Buffer

getEndpoints

getPrivateKey

  • getPrivateKey(): string

on

  • on(event: "connected", eventHandler: () => void): OPCUAClient
  • on(event: "connection_failed", eventHandler: (err: Error) => void): OPCUAClient
  • on(event: "backoff", eventHandler: (count: number, delay: number) => void): OPCUAClient
  • on(event: "start_reconnection", eventHandler: () => void): OPCUAClient
  • on(event: "reconnection_attempt_has_failed", eventHandler: (err: Error, message: string) => void): OPCUAClient
  • on(event: "after_reconnection", eventHandler: (err?: Error) => void): OPCUAClient
  • on(event: "abort", eventHandler: () => void): OPCUAClient
  • on(event: "close", eventHandler: () => void): OPCUAClient
  • on(event: "send_chunk", eventHandler: (chunk: Buffer) => void): OPCUAClient
  • on(event: "receive_chunk", eventHandler: (chunk: Buffer) => void): OPCUAClient
  • on(event: "send_request", eventHandler: (request: Request) => void): OPCUAClient
  • on(event: "receive_response", eventHandler: (response: Response) => void): OPCUAClient
  • on(event: "lifetime_75", eventHandler: (token: ChannelSecurityToken) => void): OPCUAClient
  • on(event: "security_token_renewed", eventHandler: () => void): OPCUAClient
  • on(event: "connection_lost", eventHandler: () => void): OPCUAClient
  • on(event: "connection_reestablished", eventHandler: () => void): OPCUAClient
  • on(event: "timed_out_request", eventHandler: (request: Request) => void): OPCUAClient
  • on(event: string | symbol, listener: (...args: any[]) => void): OPCUAClient

reactivateSession

  • reactivateSession(session: ClientSession): Promise<void>
  • reactivateSession(session: ClientSession, callback: (err?: Error) => void): void
  • Parameters

    Returns Promise<void>

  • Parameters

    • session: ClientSession
    • callback: (err?: Error) => void
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

withSession

  • Parameters

    • endpointUrl: string | EndpointWithUserIdentity
    • inner_func: (session: ClientSession, done: (err?: Error) => void) => void
        • Parameters

          • session: ClientSession
          • done: (err?: Error) => void
              • (err?: Error): void
              • Parameters

                • Optional err: Error

                Returns void

          Returns void

    • callback: (err?: Error) => void
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

withSessionAsync

withSubscriptionAsync

Static create

Static createSession

Generated using TypeDoc