WebSocket isn't a Node-style EventEmitter in the browser