feat: add SOCKET_PATH env
This commit is contained in:
parent
f02023db61
commit
729fdd04b7
@ -54,6 +54,9 @@ export class Gateway extends EventEmitter {
|
|||||||
private constructor() {
|
private constructor() {
|
||||||
super();
|
super();
|
||||||
this.reset();
|
this.reset();
|
||||||
|
if (process.env.SOCKET_PATH) {
|
||||||
|
this.socketPath = xpipe.eq(resolve(process.cwd(), process.env.SOCKET_PATH));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getInstance(options: any = {}): Gateway {
|
public static getInstance(options: any = {}): Gateway {
|
||||||
|
Loading…
Reference in New Issue
Block a user