Implementation of publish/subscribe for browser and node.js.