BACKEND DONE FOR ALL APPS
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import {UdpServer} from "../network/udp/udp_server";
|
||||
import {TcpServer} from "../network/tcp/tcp_server";
|
||||
import {workerData} from "worker_threads";
|
||||
|
||||
let udpServer: UdpServer | null = null;
|
||||
let tcpServer: TcpServer | null = null;
|
||||
|
||||
const {USER_UDP_PORT, USER_TCP_PORT, HOST} = workerData;
|
||||
|
||||
udpServer = new UdpServer(HOST, USER_UDP_PORT);
|
||||
udpServer.start();
|
||||
|
||||
tcpServer = new TcpServer(HOST, USER_TCP_PORT);
|
||||
tcpServer.start();
|
||||
Reference in New Issue
Block a user