UNPKG
pm2-intercom-p
Version:
latest (1.0.0)
1.0.0
Basic system to broadcast message to all other processes
pm2-intercom-p
/
examples
/
receiver.js
7 lines
(5 loc)
•
145 B
JavaScript
View Raw
1
2
3
4
5
6
7
process.
on
(
'message'
,
function
(
packet
) {
if
(packet.
topic
==
'intercom:msg'
) {
console
.
log
(
'Received packet'
, packet.
data
); } });