keabusclient
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

keabusclient

Kea bus client package

features

  • sucribe
  • listen
  • push
  • pull
  • healthcheck
  • clear

Installation

Install KeabusclientComponent using npm;

$ [npm install | yarn add] keabusclient

Basic Use

Configure and load KeabusclientComponent in the application constructor as shown below.

import {KeabusclientComponent, KeabusclientComponentOptions, DEFAULT_KEABUSCLIENT_OPTIONS} from 'keabusclient';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: KeabusclientComponentOptions = DEFAULT_KEABUSCLIENT_OPTIONS;
    this.configure(KeabusclientComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(KeabusclientComponent);
    // ...
  }
  // ...
}

Package Sidebar

Install

npm i keabusclient

Weekly Downloads

1

Version

0.0.4

License

none

Unpacked Size

15.3 kB

Total Files

11

Last publish

Collaborators

  • firmin