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

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
Copy link

welcome bot commented Jun 17, 2019

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

@DiegoRBaquero
Copy link
Member

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

Copy link
Member

@feross feross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@feross feross merged commit 8602342 into webtorrent:master Sep 10, 2019
@welcome
Copy link

welcome bot commented Sep 10, 2019

🎉 Congrats on getting your first pull request landed!

@feross
Copy link
Member

feross commented Sep 10, 2019

0.107.15

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read property 'on' of undefined when downloading torrents
3 participants