0.0.45 • Published 3 months ago
@togethercrew.dev/tc-messagebroker v0.0.45
tc-messageBroker
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.45
3 months ago
0.0.44
4 months ago
0.0.42
8 months ago
0.0.43
7 months ago
0.0.40
11 months ago
0.0.38
12 months ago
0.0.37
12 months ago
0.0.36
12 months ago
0.0.35
12 months ago
0.0.34
12 months ago
0.0.33
12 months ago
0.0.32
12 months ago
0.0.31
12 months ago
0.0.30
12 months ago
0.0.29
12 months ago
0.0.28
12 months ago
0.0.27
12 months ago
0.0.26
12 months ago
0.0.25
12 months ago
0.0.24
12 months ago
0.0.23
12 months ago
0.0.22
12 months ago
0.0.21
12 months ago
0.0.20
12 months ago
0.0.13
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago