Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@arpinum/messaging Build Status

Life is a little like a message in a bottle, to be carried by the winds and the tides.
Gene Tierney

@arpinum/messaging contains a simple message bus.

Installation

npm install @arpinum/messaging --save

Example

const { createMessageBus } = require("@arpinum/messaging");

const bus = createMessageBus();
bus.register("PrintText", (message) => console.log(message.payload));
bus.post({ type: "PrintText", payload: "Hello world" });

// Hello world

Docs

License

MIT

You can’t perform that action at this time.