@types/vertx3-eventbus-client
TypeScript icon, indicating that this package has built-in type declarations

3.5.4 • Public • Published

Installation

npm install --save @types/vertx3-eventbus-client

Summary

This package contains type definitions for vertx3-eventbus-client (http://vertx.io).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vertx3-eventbus-client.

index.d.ts

declare namespace EventBus {
    interface EventBusStatic {
        new(url: string, options?: any): EventBus;
    }

    interface EventBus {
        url: string;
        options?: any;
        onopen(): any;
        onerror(error: Error): any;
        onclose(): any;
        registerHandler(address: string, headers?: object, callback?: (error: Error, message: any) => any): any;
        unregisterHandler(address: string, headers?: object, callback?: (error: Error, message: any) => any): any;
        send(address: string, message: any, headers?: object, callback?: (error: Error, message: any) => any): any;
        publish(address: string, message: any, headers?: any): any;
        enableReconnect(enable: boolean): void;
        enablePing(enable: boolean): void;
        close(): any;
    }
}

declare var EventBus: EventBus.EventBusStatic;
export = EventBus;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Odd Eirik Nes.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/vertx3-eventbus-client

Weekly Downloads

258

Version

3.5.4

License

MIT

Unpacked Size

4.36 kB

Total Files

5

Last publish

Collaborators

  • types