ServerSidePublishEngine Class
Module: opcua.server
a Publish Engine for a given session
Constructor
ServerSidePublishEngine
(
-
options
Parameters:
-
options
Object-
[maxPublishRequestInQueue= 100]
Integer optional
-
Item Index
Methods
Methods
getSubscriptionById
(
Subscription
-
subscriptionId
retrieve a subscription by id.
Parameters:
-
subscriptionId
Integer
Returns:
send_keep_alive_response
(
Boolean
-
subscriptionId
-
future_sequence_number
call by a subscription when no notification message is available after the keep alive delay has expired.
Parameters:
-
subscriptionId
Object -
future_sequence_number
Object
Returns:
Boolean:
true if a publish response has been sent
send_notification_message
(
private
-
param
-
force
Parameters:
-
param
Object-
subscriptionId
Number -
sequenceNumber
Number -
notificationData
Object -
availableSequenceNumbers
Array -
moreNotifications
Boolean
-
-
force
Booleanpush response in queue until next publish Request is received
shutdown
()
transferSubscription
(
Void
private
-
subscription
-
destPublishEngine
-
sendInitialValues
Parameters:
-
subscription
Object -
destPublishEngine
Object -
sendInitialValues
Booleantrue if initial values should be sent
Returns:
Void:
transferSubscriptionsToOrphan
(
private
static
-
srcPublishEngine
-
destPublishEngine
Parameters:
-
srcPublishEngine
ServerSidePublishEngine -
destPublishEngine
ServerSidePublishEngine
Returns:
void
Properties
pendingPublishRequestCount
Integer
number of pending PublishRequest available in queue
subscriptionCount
Integer
number of subscriptions