1.5.5 • Published 4 years ago
@abtnode/event-hub v1.5.5
ABT Node Event Hub
A module for local and remote Inter Process Event
Usage
Install
yarn add @abtnode/event-hubServer
process.env.ABT_NODE_EVENT_PORT=8888;
require('@abtnode/event-hub/lib/server.js);Client
// process 1
process.env.ABT_NODE_EVENT_PORT = 8888;
const client = require('@abtnode/event-hub');
const data = { foo: bar };
client.broadcast('my-event', data);// process 2
process.env.ABT_NODE_EVENT_PORT = 8888;
const client = require('@abtnode/event-hub');
client.on('my-event', (data) => {
// handle data
});1.5.5
4 years ago
1.5.4
4 years ago
1.5.3
4 years ago
1.5.2
4 years ago
1.5.1
4 years ago
1.5.0
4 years ago
1.4.14
4 years ago
1.4.13
4 years ago
1.4.12
4 years ago
1.4.11
4 years ago
1.4.10
4 years ago
1.4.9
4 years ago
1.4.8
4 years ago
1.4.7
4 years ago
1.4.6
4 years ago
1.4.5
4 years ago
1.4.4
5 years ago
1.4.3
5 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.3.19
5 years ago
1.4.0
5 years ago
1.3.18
5 years ago
1.3.17
5 years ago
1.3.16
5 years ago
1.3.15
5 years ago
1.3.14
5 years ago
1.3.13
5 years ago
1.3.12
5 years ago
1.3.11
5 years ago
1.3.10
5 years ago
1.3.9
5 years ago
1.3.8
5 years ago
1.3.7
5 years ago
1.3.6
5 years ago
1.3.5
5 years ago
1.3.4
5 years ago