npm: @wuespace/vertx-event-bus
The Vert.x event bus client for Telestion Client. Used by @wuespace/telestion-client-core
.
First, add it as a dependency to your project:
pnpm add @wuespace/vertx-event-bus
# or
npm install @wuespace/vertx-event-bus
After installation, check out the exported members:
import { EventBus } from '@wuespace/vertx-event-bus';
const eventBus = new EventBus('http://localhost:9870/bridge');
eventBus.onOpen = () => {
eventBus.publish('eventbus-channel', 'Hello World!');
eventBus.close();
};
For a full list of all exported members, check out the reference: https://wuespace.github.io/telestion-client/@wuespace/vertx-event-bus/
.
├── build (built in build script)
├── src
│ ├── index.ts
│ └── [...]
├── types (built in build script, gets assembled to single build/index.d.ts file)
│ ├── index.d.ts
│ └── [...]
├── CHANGELOG.md (DO NOT TOUCH! auto-generated changelog for the package)
├── LICENSE
├── package.json
├── README.md (you're here :P)
└── [...] (configuration files, etc.)
If you want to contribute to this package, please take a look at the Telestion Client monorepo that manages this package, among other Telestion Client packages.
Thank you to all contributors of this repository:
Made with contributors-img.
This is part of Telestion, a project by WüSpace e.V..