Skip to content

Commit d0fd893

Browse files
author
fzicaro
committed
add topic return in subscribe callback
1 parent 91f7aba commit d0fd893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-MQTT.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ angular.module('ngMQTT', [])
4949
});
5050
if(topic.match(regexpStr)){
5151
$rootScope.$apply(function() {
52-
callback(data);
52+
callback(data, topic);
5353
});
5454
}
5555
})

0 commit comments

Comments
 (0)