This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@truffle/dashboard-message-bus-common
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@truffle/dashboard-message-bus-common

⚠️ This is a middleware package and should only be used when developing integrations for the truffle dashboard ⚠️

This package serves as a set of common types to be shared between packages like @truffle/dashboard-message-bus and @truffle/dashboard-message-bus-client

Installation

If you are building a package that needs to interface with the Dashboard or message bus, you can install this package from NPM.

npm install @truffle/dashboard-message-bus-common
yarn add @truffle/dashboard-message-bus-common

Adding new message types

Right now there are very few message types. The most important one is "provider", which sends RPC requests for the dashboard-provider. Other message types are "invalidate", which can be sent to invalidate earlier messages, and "log", which is sent by the message bus to send log messages over the wire. The interfaces of these messages are defined inside of this package, from where they can be imported by consumers.

To add additional message types, the interface for the new message type should be defined in this package under lib/messages.ts. To use these new messge formats, support needs to be added to any consuming packages such as @truffle/dashboard as well.

/@truffle/dashboard-message-bus-common/

    Package Sidebar

    Install

    npm i @truffle/dashboard-message-bus-common

    Weekly Downloads

    9,011

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    12.2 kB

    Total Files

    12

    Last publish

    Collaborators

    • rizedr
    • kevinbluer
    • cds-amal