*http listen doesnt exist in browser
This commit is contained in:
parent
7ff1b34212
commit
7730595b48
|
@ -68,8 +68,11 @@ export default class HandshakeProxy extends Proxy {
|
||||||
createSocket,
|
createSocket,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._node.http.http.listen = (port: number, host: string, cb: Function) =>
|
if(this?._node?.http?.http?.listen){
|
||||||
cb();
|
this._node.http.http.listen = (port: number, host: string, cb: Function) =>
|
||||||
|
cb();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
await this._node.open();
|
await this._node.open();
|
||||||
this._node.pool.connected = true;
|
this._node.pool.connected = true;
|
||||||
|
|
Loading…
Reference in New Issue