16 lines
287 B
JavaScript
16 lines
287 B
JavaScript
|
import { Socket } from '../../src'
|
||
|
import app from './tcp-app'
|
||
|
|
||
|
let socket = new Socket({port:9080, name:'tcp socket 9080'})
|
||
|
|
||
|
app.port = socket.listen_opts.port
|
||
|
|
||
|
;
|
||
|
(async () => {
|
||
|
|
||
|
await socket.create(app)
|
||
|
|
||
|
})().catch(err => {
|
||
|
console.error('FATAL: UNABLE TO START SYSTEM!\n',err)
|
||
|
})
|