1.2.1 • Published 1 year ago
@lilithmod/unborn-ipc v1.2.1
Unborn IPC
A very simple typescript wrapper to create a unix/windows socket and write data.
const SOCKETFILE = '/tmp/lilith.sock'
ipcListen(SOCKETFILE, client => {
client.on('packet', packet => {
console.log(packet.toString())
client.write(Buffer.from('hi', 'utf-8'))
})
})