Skip to content

Commit

Permalink
modify custom decoder to be able to do more work.
Browse files Browse the repository at this point in the history
  • Loading branch information
mog422 committed Apr 7, 2015
1 parent fd647a7 commit b5493ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ var bindEvents = function(self, socket) {
socket.on('message', function(msg) {
var dmsg = msg;
if(self.decode) {
dmsg = self.decode(msg);
dmsg = self.decode.call(self, msg, session);
} else if(self.connector.decode) {
dmsg = self.connector.decode(msg);
}
Expand Down

0 comments on commit b5493ce

Please sign in to comment.