A client for dueue.
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);
}