fix: xpipe.eq

This commit is contained in:
chenos 2023-08-26 16:40:23 +08:00
parent 0ea609e0a8
commit 9364a44681

View File

@ -7,6 +7,7 @@ import { resolve } from 'path';
import qs from 'qs'; import qs from 'qs';
import handler from 'serve-handler'; import handler from 'serve-handler';
import { parse } from 'url'; import { parse } from 'url';
import xpipe from 'xpipe';
import { AppSupervisor } from '../app-supervisor'; import { AppSupervisor } from '../app-supervisor';
import { ApplicationOptions } from '../application'; import { ApplicationOptions } from '../application';
import { applyErrorWithArgs, getErrorWithCode } from './errors'; import { applyErrorWithArgs, getErrorWithCode } from './errors';
@ -44,7 +45,7 @@ export class Gateway extends EventEmitter {
private port: number = process.env.APP_PORT ? parseInt(process.env.APP_PORT) : null; private port: number = process.env.APP_PORT ? parseInt(process.env.APP_PORT) : null;
private host = '0.0.0.0'; private host = '0.0.0.0';
private wsServer: WSServer; private wsServer: WSServer;
private socketPath = resolve(process.cwd(), 'storage', 'gateway.sock'); private socketPath = xpipe.eq(resolve(process.cwd(), 'storage', 'gateway.sock'));
private constructor() { private constructor() {
super(); super();