aux-broker-mq
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

Вспомогательный прокси для взаимодействия с очередью сообщений

Как подключить

import { BrokerProxy } from "./dist/BrokerProxy";
const broker = new BrokerProxy({ host: "guest:guest@localhost" });
// ... async context {
    await broker.connect();
    await broker.createChannel("test");
// }

Как работать

Отправка сообщений

 broker.emit("testService.Update", { value: Object });

Получение сообщений

interface Event {
    value: Object
}
broker.on<Event>("testService.Update").subscribe((msg: Event) => {
     
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.150latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50

Package Sidebar

Install

npm i aux-broker-mq

Weekly Downloads

0

Version

1.0.15

License

MSI

Unpacked Size

37.7 kB

Total Files

20

Last publish

Collaborators

  • pikada-lab