Skip to content

Latest commit

 

History

History

README.md

@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.