1
0
Fork 0
refactor/models
Matthew 2021-04-19 23:57:09 -04:00
parent 77e4fb91a3
commit d82c96db7e
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,8 @@ export default class CSCLI {
public client: Client;
public servers: {
tcp: net.Server,
unix: net.Server,
tcp?: net.Server,
unix?: net.Server,
};
public handlers: Collection<Handler>;
@ -21,6 +21,7 @@ export default class CSCLI {
constructor(client: Client) {
this.client = client;
this.servers = {};
this.loadKeys();
this.servers.tcp = net.createServer((socket) => {
socket.on('data', async (data) => {