immudb-node icon indicating copy to clipboard operation
immudb-node copied to clipboard

client can be configured to keep the connection open indefinitely

Open elmarquez opened this issue 2 years ago • 2 comments

Currently, inactive sessions are automatically closed by the server after a designated timeout period. By default, the timeout period is two minutes.

Provide configuration or a function that can be called periodically to ensure that the connection remains active. Possible implementation options include a keepAlive() function, or client configuration that accepts a keep alive flag. The implementation approach should be made consistent across SDK's.

elmarquez avatar Dec 22 '22 23:12 elmarquez

Alternately, it could be the case that the client instance reopens the connection automatically as needed.

elmarquez avatar Dec 23 '22 00:12 elmarquez

hey @elmarquez, we will look into improving that part. Thx for reporting it :)

tomekkolo avatar Dec 28 '22 14:12 tomekkolo