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