Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Revert "Fixed MQTT topic rewriting support."
Browse files Browse the repository at this point in the history
This reverts commit 131dc05.
  • Loading branch information
mcollina committed Jul 17, 2013
1 parent af6f34b commit 3f982e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
6 changes: 1 addition & 5 deletions lib/behave_like_an_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ module.exports = function() {

it("should support multi-level wildcard at start of topic", function(done) {
var that = this;
var sub = function() {
that.instance.unsub("*/hello", sub, done);
};

that.instance.sub("*/hello", sub, function() {
that.instance.sub("*/hello", wrap(done), function() {
that.instance.pub("42/there/hello");
});
});
Expand Down
7 changes: 0 additions & 7 deletions lib/mqtt_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,7 @@ MQTTAscoltatore.prototype._startConn = function() {
// we need to skip out this callback, so we do not
// break the client when an exception occurs
util.defer(function() {
var other;
if (topic.indexOf("/").length === 0) {
other = topic.substr(1);
} else {
other = "/" + topic;
}
that._ascoltatore.publish(topic, payload, packet);
that._ascoltatore.publish(other, payload, packet);
});
});
this._client.on('error', function(e) {
Expand Down

0 comments on commit 3f982e6

Please sign in to comment.