Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PseudoSession

Pseudo session is an helper object that exposes the same async methods than the ClientSession. It can be used on a server address space.

Code reused ! The primary benefit of this object is that its makes advanced OPCUA operations that uses browse, translate, read, write etc similar whether we work inside a server or through a client session.

param
constructor

Hierarchy

  • PseudoSession

Implements

  • IBasicSession

Index

Constructors

constructor

Properties

server

server: IServerBase

session

session: ISessionBase

Methods

browse

browseNext

  • browseNext(continuationPoint: Buffer, releaseContinuationPoints: boolean, callback: ResponseCallback<BrowseResult>): void
  • browseNext(continuationPoints: Buffer[], releaseContinuationPoints: boolean, callback: ResponseCallback<BrowseResult[]>): void
  • browseNext(continuationPoint: Buffer, releaseContinuationPoints: boolean): Promise<BrowseResult>
  • browseNext(continuationPoints: Buffer[], releaseContinuationPoints: boolean): Promise<BrowseResult[]>

call

  • call(methodToCall: CallMethodRequestLike, callback: ResponseCallback<CallMethodResult>): void
  • call(methodsToCall: CallMethodRequestLike[], callback: ResponseCallback<CallMethodResult[]>): void
  • call(methodToCall: CallMethodRequestLike): Promise<CallMethodResult>
  • call(methodsToCall: CallMethodRequestLike[]): Promise<CallMethodResult[]>

getArgumentDefinition

  • getArgumentDefinition(methodId: MethodId): Promise<ArgumentDefinition>
  • getArgumentDefinition(methodId: MethodId, callback: ResponseCallback<ArgumentDefinition>): void

read

translateBrowsePath

  • translateBrowsePath(browsePaths: BrowsePath[], callback: ResponseCallback<BrowsePathResult[]>): void
  • translateBrowsePath(browsePath: BrowsePath, callback: ResponseCallback<BrowsePathResult>): void
  • translateBrowsePath(browsePath: BrowsePath): Promise<BrowsePathResult>
  • translateBrowsePath(browsePaths: BrowsePath[]): Promise<BrowsePathResult[]>

Generated using TypeDoc