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

Added pause/resume, refactored code, improved command line interface, etc #514

Closed
wants to merge 21 commits into from

Conversation

@whitef0x0
Copy link

whitef0x0 commented Dec 5, 2015

This is a big PR, so let me just list out everything that I've changed/added

New Features

Torrent.js

  1. Added pause() & resume() for active torrents
    • pauses and resumes the current torrent
  2. Added disableSeeding() and enableSeeding()
    • enables or disables autoseeding

Index.js

  1. Added pause() & resume()
    • pauses and resumes a client's torrent (calls Torrent.pause/resume)
  2. Added addBySearch()
    • Fetches most relevant torrent from http://kat.cr and downloads first result

bin/test.js

  1. Added CLI interface for test running
    • see webtorrent-test --help for more info

bin/cmd.js

  1. Added CLI interface for searching
  2. Added CLI menu to quit, resume and pause while seeding or downloading a torrent

Testing

test/browserAppendTo

  1. Added a browser-based video streaming test for AppendTO

test/Resume-Torrent-Scenarios

  1. Added 5 scenario-based test cases for pause and resume (resume-torrent-scenarios.js)

Search-Torrent-Scenarios

  1. Added 3 scenario-based test cases for pause and resume (resume-torrent-scenarios.js)

Torrent.js

  1. Added unit tests for private functions in Torrent.js

I also added coveralls support and code coverage with istanbul if you choose to use it

@whitef0x0 whitef0x0 closed this Dec 5, 2015
@lock

This comment has been minimized.

Copy link

lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.