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

add message to publish callback #527

Merged
merged 3 commits into from
Jul 24, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Server.prototype.publish = function publish(packet, client, callback) {
logger.debug({ packet: newPacket }, "published packet");
}
that.emit("published", newPacket, client);
callback();
callback(newPacket);
Copy link
Collaborator

@mcollina mcollina Jul 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move this as the second argument? The first one is for the error.

});
}
);
Expand Down