The idea behind this is to allow a single channel for communication between the scraper internals and the library's user. The event emitter. This is cool for a number of reasons, but the biggest is that it makes communication across workers extremely easy. Masters and workers can both instantiate a scraper but the master just passes on commands to the worker. It would look a bit like this
The idea behind this is to allow a single channel for communication between the scraper internals and the library's user. The event emitter. This is cool for a number of reasons, but the biggest is that it makes communication across workers extremely easy. Masters and workers can both instantiate a scraper but the master just passes on commands to the worker. It would look a bit like this
We can keep all the classyness that makes accessing the library nice but the class methods will just call emitter endpoints.