toEventEmitter
Last updated
Was this helpful?
Last updated
Was this helpful?
Rx.Node.toEventEmitter(observable, eventName)
Converts the given observable sequence to an event emitter with the given event name. The errors are handled on the 'error' event and completion on the 'end' event.
observable
(Obsesrvable): The observable sequence to convert to an EventEmitter.
eventName
(String): The event name to subscribe.
(EventEmitter): An EventEmitter which emits the given eventName for each onNext call in addition to 'error' and 'end' events.