Simple, EventEmitter API for WebSockets