Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 313 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 313 Bytes

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'))
    })
})