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

Create CaptchaHandler Class #443

Open
pr1sm opened this issue May 13, 2019 · 0 comments
Open

Create CaptchaHandler Class #443

pr1sm opened this issue May 13, 2019 · 0 comments
Labels
area:task-runner Related to Nebula's Task Runner package focus:captcha things involving captcha harvesting/solving priority:urgent Issues that need to be solved right away type:enhancement New feature or request
Milestone

Comments

@pr1sm
Copy link
Collaborator

pr1sm commented May 13, 2019

Create a CaptchaHandler class in the task-runner package abstracts the events related to sending/receiving captcha tokens. This captcha handler class will act as a wrapper around the event-based communication with the TaskManager (and frontend) and provide a promise-based API for the TaskRunner to consume.

Specifically, the following functions will be added:

  1. requestCaptcha - Return a promise that resolves to the next available captcha. If this is the first time calling the method, the CaptchaHandler will send the initial event to start harvesting.
  2. stopHarvesting - Returns void. Captcha Handler will emit an event to notify the TaskManager (and frontend) that captchas are no longer required.
@pr1sm pr1sm added area:frontend Related to Nebula's Frontend Electron app focus:captcha things involving captcha harvesting/solving priority:urgent Issues that need to be solved right away type:enhancement New feature or request area:task-runner Related to Nebula's Task Runner package and removed area:frontend Related to Nebula's Frontend Electron app labels May 13, 2019
@walmat walmat added this to the 1.1.0 Release milestone May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:task-runner Related to Nebula's Task Runner package focus:captcha things involving captcha harvesting/solving priority:urgent Issues that need to be solved right away type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants