diff --git a/src/index.ts b/src/index.ts index b20a5f9..6976e17 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,6 +37,8 @@ export default class RPC extends ProtomuxRPC { stream.off("destroy", ondestroy); } }); + + stream.setKeepAlive(5000); } async request(method: any, value: any | string = "", options = {}) {