Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*
* @property maxNotificationsPerPublish
* @type {Number}
* #default 0
*/
subscription.maxNotificationsPerPublish = _adjust_maxNotificationsPerPublish(options.maxNotificationsPerPublish);
subscription._life_time_counter = 0;
subscription.resetLifeTimeCounter();
// notification message that are ready to be sent to the client
subscription._pending_notifications = new Dequeue();
subscription._sent_notifications = [];
subscription._sequence_number_generator = new SequenceNumberGenerator();
// initial state of the subscription
subscription.state = SubscriptionState.CREATING;
subscription.publishIntervalCount = 0;
subscription.monitoredItems = {}; // monitored item map
/**
* number of monitored Item
* @property monitoredItemIdCounter
* @type {Number}
*/
subscription.monitoredItemIdCounter = 0;
subscription.publishingEnabled = _adjust_publishinEnable(options.publishingEnabled);
this.resetKeepAliveCounter();
this.lifeTimeCount = _adjust_lifeTimeCount(
options.lifeTimeCount || 0, this.maxKeepAliveCount, this.publishingInterval);
this.maxNotificationsPerPublish = _adjust_maxNotificationsPerPublish(options.maxNotificationsPerPublish);
this._life_time_counter = 0;
this.resetLifeTimeCounter();
// notification message that are ready to be sent to the client
this._pending_notifications = new Dequeue();
this._sent_notifications = [];
this._sequence_number_generator = new SequenceNumberGenerator();
// initial state of the subscription
this.state = SubscriptionState.CREATING;
this.publishIntervalCount = 0;
this.monitoredItems = {}; // monitored item map
this.monitoredItemIdCounter = 0;
this.publishingEnabled = _adjust_publishinEnable(options.publishingEnabled);
this.subscriptionDiagnostics = createSubscriptionDiagnostics(this);
// A boolean value that is set to TRUE to mean that either a NotificationMessage or a keep-alive
// Message has been sent on the Subscription. It is a flag that is used to ensure that either a