# @truffle/dashboard-message-bus-common

> Message types that are used when communicating with the Truffle dashboard message bus

Latest version **0.1.7** (published 2023-09-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @truffle/dashboard-message-bus-common
pnpm add @truffle/dashboard-message-bus-common
yarn add @truffle/dashboard-message-bus-common
bun add @truffle/dashboard-message-bus-common
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2023-09-07 |
| First published | 2022-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | ^16.20 \|\| ^18.16 \|\| >=20 |
| Dependencies | 0 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13915 |
| Author | Rosco Kalis |
| Maintainers | rizedr, joshuafernandes, cliffoo, kevinbluer, gnidan, haltman, eggplantzzz, fainashalts, cds-amal |

## Links

- npm: https://www.npmjs.com/package/@truffle/dashboard-message-bus-common
- Repository: https://github.com/trufflesuite/truffle
- Homepage: https://github.com/trufflesuite/truffle/tree/master/packages/dashboard-message-bus-common#readme
- Issues: https://github.com/trufflesuite/truffle/issues
- npm.io page: https://npm.io/package/@truffle/dashboard-message-bus-common

## Recent versions

- 0.1.7 (latest) — 2023-09-07
- 0.1.5-hardhat-error.0 (hardhat-error) — 2022-08-25
- 0.1.0-alpha.2 (signTypedData_v4) — 2022-06-24
- 0.1.6 — 2023-06-06
- 0.1.5 — 2022-11-23
- 0.1.4 — 2022-08-24
- 0.1.4-hardhat-error.1 — 2022-08-22
- 0.1.4-hardhat-error.0 — 2022-08-20
- 0.1.3 — 2022-08-17
- 0.1.2 — 2022-07-15
- 0.1.1 — 2022-07-01
- 0.1.0 — 2022-06-23
- 0.1.0-alpha.0 — 2022-06-23

## README

# @truffle/dashboard-message-bus-common

:warning: **This is a middleware package and should only be used when developing integrations for the truffle dashboard** :warning:

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.

---
_Source: https://npm.io/package/@truffle/dashboard-message-bus-common · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
