0.0.51 • Published 1 year ago

@togethercrew.dev/tc-messagebroker v0.0.51

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

tc-messageBroker

Maintainability Test Coverage

RabbitMQ library written in TypeScript. Responsible for brokering messages between different services.

Install

npm i @togethercrew.dev/tc-messagebroker

Initial RabbitMQ in root directory

import RabbitMQ from '@togethercrew.dev/tc-messagebroker';

RabbitMQ.connect("connectionURL", "queueName").then(() => {
    console.log("RabbitMQ was connected!")
})

Push to the specific queue and event

import RabbitMQ from '@togethercrew.dev/tc-messagebroker';

RabbitMQ.publish("queueName", "eventName", { key: "value" })

Subscribe on specific event

import RabbitMQ from '@togethercrew.dev/tc-messagebroker';

RabbitMQ.onEvent("eventName", (msg) => {})

Ensure that the onEvent function is called when the application is launched

0.0.51

1 year ago

0.0.50

1 year ago

0.0.49

1 year ago

0.0.48

1 year ago

0.0.47

1 year ago

0.0.46

2 years ago

0.0.45

2 years ago

0.0.44

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.40

3 years ago

0.0.38

3 years ago

0.0.37

3 years ago

0.0.36

3 years ago

0.0.35

3 years ago

0.0.34

3 years ago

0.0.33

3 years ago

0.0.32

3 years ago

0.0.31

3 years ago

0.0.30

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago