Skip to content

Instantly share code, notes, and snippets.

@abrkn
Created October 23, 2012 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abrkn/3937588 to your computer and use it in GitHub Desktop.
Save abrkn/3937588 to your computer and use it in GitHub Desktop.
this.socket.emit = _.wrap(this.socket.emit, function(fn, name) {
console.log.apply(this, ['-->', socket.id].concat(_.toArray(arguments).slice(1)));
return fn.apply(this, _.toArray(arguments).slice(1));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment