jigsawlutioner-controller

3.2.1 • Public • Published

jigsawlutioner-controller

Create controller

import Controller from 'jigsawlutioner-controller';

const controller = new Controller(3000);

controller.createEndpoint('foobar', async(parameters, resolve) => {
    await sleep(parameters.sleep1);
    
    resolve();
    
    await sleep(parameters.sleep2);
});

Readme

Keywords

none

Package Sidebar

Install

npm i jigsawlutioner-controller

Weekly Downloads

2

Version

3.2.1

License

MIT

Unpacked Size

5.45 kB

Total Files

4

Last publish

Collaborators

  • bywulf