2018-01-23 16:02:56 -08:00
|
|
|
import { Socket } from '../../src'
|
2018-01-13 20:46:14 -08:00
|
|
|
|
2018-01-23 16:02:56 -08:00
|
|
|
const USOCKET = __dirname + '/test.sock'
|
2018-01-13 20:46:14 -08:00
|
|
|
|
2018-01-30 16:59:57 -08:00
|
|
|
let socket = new Socket(USOCKET,{name:'unix socket', log:false})
|
2018-01-13 20:46:14 -08:00
|
|
|
|
|
|
|
;
|
|
|
|
(async () => {
|
2018-01-19 20:43:16 -08:00
|
|
|
await socket.create()
|
2018-01-13 20:46:14 -08:00
|
|
|
|
|
|
|
})().catch(err => {
|
|
|
|
console.error('FATAL: UNABLE TO START SYSTEM!\n',err)
|
|
|
|
})
|