From a72f55c888617cd12c97f173b0c31518dddff627 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 23 Jul 2023 14:08:18 -0400 Subject: [PATCH] fix: add setKeepAlive --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) 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 = {}) {