2.0.10 • Published 1 year ago

talos-bus v2.0.10

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
1 year ago

NPM version

RabbitMQ client using amqplib

Features

  • Well-defined API
  • Implemented Bus interface for RabbitMQ
  • Automatic re-connection
  • Message buffering between link failures
  • Subscriptions are preserved between re-connections
  • Injectable logger, let you use log4js for example
  • Easy and intuitive to use

Install

npm install talos-bus

Example

const client = new RabbitMQ(new ClientConfig(
    'amqp://guest:guest@localhost:5672'
));

const isConnected: boolean = await client.connect();

const subscription: Subscription = QueueSubscriptionBuilder.newBuilder("logs").isAutoDelete(true).build();

await client.subscribe(subscription);
subscription.on("message", console.log);
const sent: boolean = client.publish(Message.toQueue('logs', Buffer.from('message')));
2.0.10

1 year ago

2.0.5

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

1.0.13

3 years ago

2.0.0

3 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago