1.2.0 • Published 2 years ago

@dreamworld/sysend v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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` });