uci-websocket/test/sockets/tcpsocket-default.js

16 lines
281 B
JavaScript
Raw Normal View History

import { Socket } from '../../src'
import process from './tcp-process'
let socket = new Socket({name:'tcp socket'})
socket.registerPacketProcessor(process)
;
(async () => {
await socket.create()
})().catch(err => {
console.error('FATAL: UNABLE TO START SYSTEM!\n',err)
})