Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    queuedpublic

    node-queued

    Queued client for Node.js

    Example

    var queued = require('queued');
    var client = queued('http://localhost:5353', { auth: '...' });
    var queue = client.queue('testing');

    Producer:

    queue.enqueue('foo', function (err, item) {
        ...
    });

    Consumer:

    queue.dequeue({ timeout: 10, wait: 30 }, function (err, item) {
        if (err) throw err;
     
        console.log(item.value);
     
        item.complete(function (err) {
            if (err) throw err;
        });
    });

    Install

    $ npm install queued

    Keywords

    none

    install

    npm i queued

    Downloadsweekly downloads

    7

    version

    0.1.1

    license

    none

    last publish

    collaborators

    • avatar