forked from engineering/cloudservices
fix
parent
77e4fb91a3
commit
d82c96db7e
|
@ -11,8 +11,8 @@ export default class CSCLI {
|
||||||
public client: Client;
|
public client: Client;
|
||||||
|
|
||||||
public servers: {
|
public servers: {
|
||||||
tcp: net.Server,
|
tcp?: net.Server,
|
||||||
unix: net.Server,
|
unix?: net.Server,
|
||||||
};
|
};
|
||||||
|
|
||||||
public handlers: Collection<Handler>;
|
public handlers: Collection<Handler>;
|
||||||
|
@ -21,6 +21,7 @@ export default class CSCLI {
|
||||||
|
|
||||||
constructor(client: Client) {
|
constructor(client: Client) {
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
this.servers = {};
|
||||||
this.loadKeys();
|
this.loadKeys();
|
||||||
this.servers.tcp = net.createServer((socket) => {
|
this.servers.tcp = net.createServer((socket) => {
|
||||||
socket.on('data', async (data) => {
|
socket.on('data', async (data) => {
|
||||||
|
|
Loading…
Reference in New Issue