Depends whether you want people to be able to set the publish method in the constructor (this.publish = ...) as an alternative to using the prototype.