mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Delay node enhancements (#2294)
* Remove unused messages in message catalog
* Support msg.rate in delay node
* Support nodeMessageBufferMaxLength in delay node
* Add logging function for queue size
* Support msg.nodeMessageBufferMaxLength
* Revert "Support msg.nodeMessageBufferMaxLength"
This reverts commit cc72f892f7
.
* Improve logging function for delay node
* Add support for Messaging API to delay node
* Add documentation about msg.rate in delay node
* Add test cases for msg.rate in delay node
Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
<dd>Sets the delay, in milliseconds, to be applied to the message. This
|
||||
option only applies if the node is configured to allow the message to
|
||||
override the configured default delay interval.</dd>
|
||||
<dt class="optional">rate <span class="property-type">number</span></dt>
|
||||
<dd>Sets the rate value in milliseconds between messages.
|
||||
This node overwrites the existing rate value defined in the node configuration
|
||||
when it receives the message which contains <code>msg.rate</code> value.</dd>
|
||||
<dt class="optional">reset</dt>
|
||||
<dd>If the received message has this property set to any value, all
|
||||
outstanding messages held by the node are cleared without being sent.</dd>
|
||||
|
@@ -301,9 +301,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"buffer": "buffer exceeded 1000 messages",
|
||||
"buffer1": "buffer exceeded 10000 messages"
|
||||
"errors": {
|
||||
"too-many" : "too many pending messages in delay node"
|
||||
}
|
||||
},
|
||||
"trigger": {
|
||||
|
Reference in New Issue
Block a user