uci-socket/test/sockets/tcpsocket-default.mjs

16 lines
293 B
JavaScript
Raw Normal View History

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)
})