fix: add setKeepAlive

This commit is contained in:
Derrick Hammer 2023-07-23 14:08:18 -04:00
parent d489f2d9a7
commit a72f55c888
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ export default class RPC extends ProtomuxRPC {
stream.off("destroy", ondestroy); stream.off("destroy", ondestroy);
} }
}); });
stream.setKeepAlive(5000);
} }
async request(method: any, value: any | string = "", options = {}) { async request(method: any, value: any | string = "", options = {}) {