you should override $emit and emit only once in the SocketWatcher constructor or some other initialization step. (you can also overide emit dirrectly on the prototype).