dueue-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

dueue-client

Introduction

A client for dueue.

Getting started

npm install --save dueue-client
import DueueClient from "dueue-client";

const dueueClient = new FetchDueueClient(`http://localhost:8080`);

const queueName = "example-queue";
await dueueClient.publish(queueName, "hello world");

const subscriberId = "example-subscriber";
const message = await dueueClient.receive(queueName, subscriberId);
if (message !== null) {
  await dueueClient.acknowledge(queueName, subscriberId, message.id);
}

Dependencies (1)

Dev Dependencies (10)

Package Sidebar

Install

npm i dueue-client

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

23.8 kB

Total Files

23

Last publish

Collaborators

  • tombailey