APIs

Show:

A client side implementation to deal with publish service.

The ClientSidePublishEngine encapsulates the mechanism to deal with a OPCUA Server and constantly sending PublishRequest The ClientSidePublishEngine also performs notification acknowledgements. Finally, ClientSidePublishEngine dispatch PublishResponse to the correct Subscription id callback

Constructor

ClientSidePublishEngine

(
  • session
)

Parameters:

Methods

acknowledge_notification

(
  • subscriptionId
  • sequenceNumber
)

Parameters:

  • subscriptionId Number

    the subscription id

  • sequenceNumber Number

    the sequence number

getSubscription

(
  • subscriptionId
)
Subscription | Null

get the client subscription from Id

Parameters:

  • subscriptionId Number

    the subscription Id

Returns:

Subscription | Null:

registerSubscription

(
  • subscription.subscriptionId
  • subscription.timeoutHint
  • subscription.onNotificationMessage
)

Parameters:

  • subscription.subscriptionId Object
  • subscription.timeoutHint Object
  • subscription.onNotificationMessage Function

    callback

unregisterSubscription

(
  • subscriptionId
)

Parameters:

  • subscriptionId Object

Properties

subscriptionCount

Number

the number of active subscriptions managed by this publish engine.