|
@@ -59,7 +59,7 @@ class ContrlServer {
|
|
|
}
|
|
}
|
|
|
// 控制服务
|
|
// 控制服务
|
|
|
initContrl() {
|
|
initContrl() {
|
|
|
- this.Contrl = fork('./contrl.js')
|
|
|
|
|
|
|
+ this.Contrl = fork('./lib/contrl.js')
|
|
|
this.Contrl.on('message', (msg) => {
|
|
this.Contrl.on('message', (msg) => {
|
|
|
if (this.socket && this.socket.connected) {
|
|
if (this.socket && this.socket.connected) {
|
|
|
console.log('用户连接可发送', msg);
|
|
console.log('用户连接可发送', msg);
|