*http listen doesnt exist in browser

This commit is contained in:
Derrick Hammer 2023-02-01 12:57:11 -05:00
parent 7ff1b34212
commit 7730595b48
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 2 deletions

View File

@ -68,8 +68,11 @@ export default class HandshakeProxy extends Proxy {
createSocket,
});
if(this?._node?.http?.http?.listen){
this._node.http.http.listen = (port: number, host: string, cb: Function) =>
cb();
}
await this._node.open();
this._node.pool.connected = true;