rabbitmq-stream-js-client-qwe
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

RabbitMQ client for the stream protocol for Node.JS

NOT READY FOR PRODUCTION - The client is HEAVILY work in progress.

Build Status

Table of Contents

Getting started

A rapid getting started

const rabbit = require("rabbitmq-stream-js-client")

async function main() {
  const connection = await rabbit.connect({
    hostname: "localhost",
    port: 5552,
    username: "rabbit",
    password: "rabbit",
    vhost: "/",
  })

  await connection.close()
}

main()
  .then(() => console.log("done!"))
  .catch((res) => console.log("ERROR ", res))

Usage


Connect

const connection = await connect({
  hostname: "localhost",
  port: 5552,
  username: "rabbit",
  password: "rabbit",
  vhost: "/",
})

// ...

await connection.close()

Build from source

Build:

$ npm run build

Test:

$ docker-compose up -d
$ npm run test

Check everything:

$ npm run check

Project Status

The client is HEAVILY work in progress. The API(s) could change prior to version 1.0.0

MISC

https://github.com/rabbitmq/rabbitmq-server/blob/master/deps/rabbitmq_stream/docs/PROTOCOL.adoc

Readme

Keywords

Package Sidebar

Install

npm i rabbitmq-stream-js-client-qwe

Weekly Downloads

6

Version

0.0.4

License

ISC

Unpacked Size

170 kB

Total Files

186

Last publish

Collaborators

  • baldarn