@dreamworld/sysend
v1.2.0
Published
## Installation
Downloads
24
Readme
Sysend
Installation
Using npm
npm install @dreamworld/sysend
or yarn
yarn add @dreamworld/sysend
Usage
import sysend from '@dreamworld/sysend';
//Listern for `custom-message` message
sysend.on('custom-message', function(message) {
//Handle on `custom-message` message
});
//Broadcast message
sysend.broadcast('custom-message', { message: `Hello` });