From e4bc0f6a61448fb575d954f21dd22b7a86e61f00 Mon Sep 17 00:00:00 2001 From: Nils Date: Fri, 19 Mar 2021 18:23:04 +0000 Subject: [PATCH] Update connectOptions default in README (#394) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bc69f85..73d7ed9 100644 --- a/README.md +++ b/README.md @@ -97,13 +97,13 @@ The entire `WAConnectOptions` struct is mentioned here with default values: ``` ts conn.connectOptions = { /** fails the connection if no data is received for X seconds */ - maxIdleTimeMs?: 15_000, + maxIdleTimeMs?: 60_000, /** maximum attempts to connect */ - maxRetries?: 5, + maxRetries?: 10, /** max time for the phone to respond to a connectivity test */ - phoneResponseTime?: 10_000, + phoneResponseTime?: 15_000, /** minimum time between new connections */ - connectCooldownMs?: 3000, + connectCooldownMs?: 4000, /** agent used for WS connections (could be a proxy agent) */ agent?: Agent = undefined, /** agent used for fetch requests -- uploading/downloading media */