Skip to content

Forward listening and error events.#153

Merged
nwgh merged 1 commit into
molnarg:masterfrom
julien-f:forward-events
Jan 8, 2016
Merged

Forward listening and error events.#153
nwgh merged 1 commit into
molnarg:masterfrom
julien-f:forward-events

Conversation

@julien-f
Copy link
Copy Markdown
Contributor

@julien-f julien-f commented Nov 5, 2015

listening event is currently not forwarded which force the user to pass a callback to .listen().
This breaks certain patterns such as the use of event-to-promise.

The problem is worst for the error event: because it is not forwarded, it will crash the process.

@calvinmetcalf
Copy link
Copy Markdown

I opened up a similar issue (#155) as well, there already is some event forwarding code which likely needs to be refactored.

nwgh added a commit that referenced this pull request Jan 8, 2016
Forward `listening` and `error` events.
@nwgh nwgh merged commit 9e69281 into molnarg:master Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants