mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Update packages/node_modules/@node-red/nodes/core/network/10-mqtt.js
Co-authored-by: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com>
This commit is contained in:
parent
3d3090a8f2
commit
98d524e82d
@ -1008,13 +1008,13 @@ module.exports = function(RED) {
|
||||
// so we can't use removeAllListeners() wothout breaking it
|
||||
|
||||
/**
|
||||
* Add an event handlers to the MQTT.js client
|
||||
* @param {string} [event] The name of the event (optional)
|
||||
* @param {function} [handler] The handler for this event
|
||||
* Add an event handler to the MQTT.js client
|
||||
* @param {string} event The name of the event
|
||||
* @param {function} handler The handler for this event
|
||||
*/
|
||||
node._clientOn = function(event, f) {
|
||||
node.clientListeners.push({event, f})
|
||||
node.client.on(event, f)
|
||||
node._clientOn = function(event, handler) {
|
||||
node.clientListeners.push({event, handler})
|
||||
node.client.on(event, handler)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user