Update pubsub.js

There is a errata,More in http://stackoverflow.com/questions/16903844/node-js-net-events-dont-fire