Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 284 Bytes

File metadata and controls

13 lines (10 loc) · 284 Bytes
const ipcClient = require('ipcclient');

const myIPC = new ipcClient({ name: 'myIPC' });

setInterval(() => {
    myIPC.send('myIPC topic', { data: 'much data such wow' });
}, 5000);

myIPC.on('message', ({ topic, payload }) => {
    console.log(topic, payload);
});