fix: add stream setKeepAlive for rpc connections

This commit is contained in:
Derrick Hammer 2023-07-23 15:03:35 -04:00
parent 05c0004623
commit e2a71f6851
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ export function setupStream(stream: SecretStream) {
valueEncoding: c.json,
});
stream.setKeepAlive(5000);
return stream[RPC_PROTOCOL_SYMBOL];
}