crowd-client

0.0.2 • Public • Published

crowd-client

Generic client for Crowd that gets tasks, execute them and get to the next task.

Warning: this is very experimantal - in case you get it to work, you might feel "double rainbow all the way".

Usage

Ideally, one should be able to do so:

var worker = require('crowd-webworker')
var crowd = require('crowd-client')
var rest = require('crowd-rest')

crowd(opts)
  .use(rest('http://127.0.0.1:1200/task'))
  .pipe(worker())

What happens in the worker is that the task function is retrieved from the crowd-client, evaluated and executed.

Readme

Keywords

Package Sidebar

Install

npm i crowd-client

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • nicola