You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
254 B
JavaScript

'use strict';
// utility to send messages to processes
module.exports = function (ps, name, data) {
if (typeof ps === 'string') {
data = name || {};
name = ps;
ps = process;
}
ps.send({
name: 'ava-' + name,
data: data,
ava: true
});
};