Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 519 Bytes

File metadata and controls

17 lines (9 loc) · 519 Bytes

@metamask/messenger

A type-safe message bus library.

The Messenger class allows registering functions as 'actions' that can be called elsewhere, and it allows publishing and subscribing to events. Both actions and events are identified by namespaced strings.

Installation

yarn add @metamask/messenger

or

npm install @metamask/messenger

Contributing

This package is part of a monorepo. Instructions for contributing can be found in the monorepo README.