feat: http与ws允许监听同一端口,快速登录允许自动选择QQ号,允许禁用webUI

This commit is contained in:
挂神
2024-07-22 18:41:31 +08:00
parent 0efdffd857
commit f7bdc35ed6
6 changed files with 69 additions and 18 deletions

View File

@@ -9,7 +9,15 @@ type RegisterHandler = (res: Response, payload: any) => Promise<any>
export abstract class HttpServerBase {
name: string = 'NapCatQQ';
private readonly expressAPP: Express;
private server: http.Server | null = null;
private _server: http.Server | null = null;
public get server(): http.Server | null {
return this._server;
}
private set server(value: http.Server | null) {
this._server = value;
}
constructor() {
this.expressAPP = express();