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-02-03 13:33:25 -08:00
|
|
|
let socket = new Socket({path:USOCKET,name:'default-unix-socket'})
|
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)
|
|
|
|
})
|