|
import { Socket } from '../../src'
|
|
|
|
const USOCKET = __dirname + '/test.sock'
|
|
|
|
let socket = new Socket({path:USOCKET,name:'default-unix-socket'})
|
|
|
|
;
|
|
(async () => {
|
|
await socket.create()
|
|
|
|
})().catch(err => {
|
|
console.error('FATAL: UNABLE TO START SYSTEM!\n',err)
|
|
})
|