Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return server from server.listen for method chaining to work #1641

Merged
merged 2 commits into from Sep 10, 2019

Conversation

@tryzniak
Copy link
Contributor

tryzniak commented Jun 17, 2019

Hi! This should fix webtorrent/webtorrent-cli#101 and webtorrent/webtorrent-cli#100. There was some breaking change in #1547. We used to return server for method chaining, to do stuff like server.listen(...).on('error...'), and it broke. This PR fixes everything back to normal.

@welcome

This comment has been minimized.

Copy link

welcome bot commented Jun 17, 2019

🙌 Thanks for opening this pull request! You're awesome.

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

DiegoRBaquero commented Jun 25, 2019

I had fixed returning server, but I prefer your version :). Thank you!

@feross
feross approved these changes Sep 10, 2019
Copy link
Member

feross left a comment

LGTM

@feross feross merged commit 8602342 into webtorrent:master Sep 10, 2019
3 checks passed
3 checks passed
WIP Ready for review
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@welcome

This comment has been minimized.

Copy link

welcome bot commented Sep 10, 2019

🎉 Congrats on getting your first pull request landed!

@feross

This comment has been minimized.

Copy link
Member

feross commented Sep 10, 2019

0.107.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.