How to use the send function from process

Find comprehensive JavaScript process.send code examples handpicked from public code repositorys.

108
109
110
111
112
113
114
115
116
117
        addedMessages: added,
        campaignId: rssCampaign.id
    });
    log.verbose('Feed', `Found ${added} new campaigns messages from feed ${rssCampaign.id}`);

    process.send({
        type: 'entries-added'
    });
} else {
    checkStatus = tLog('foundNothingNewFromTheFeed');
fork icon702
star icon0
watch icon116

+ 3 other calls in file

41
42
43
44
45
46
47
48
49
50
}   

check_output(params.ffmpeg.replace(/mpeg/g, "probe"), [..."-probesize 48M -loglevel quiet -print_format json -show_error -show_format -show_streams".split(" "), src_url]).then((o) => {
    const probe_streams = JSON.parse(o).streams
    if (probe_streams.length <= 0) {
        process.send({retry: true, stream_id: params.stream_id, type: params.type, params: {
            src: params.src,
            src_id: params.src_id,
            additional_params: params.additional_params,
            name: params.name
fork icon0
star icon1
watch icon0

+ 6 other calls in file