Event proxying for node.js or the browser.