feat: enforce default timeout to prevent any hanging promises

This commit is contained in:
Adhiraj Singh
2021-11-25 19:54:56 +05:30
parent b91a1cbcf3
commit 6e830c1e1b
4 changed files with 7 additions and 1 deletions

View File

@@ -96,6 +96,8 @@ type SocketConfig = {
waWebSocketUrl: string | URL
/** Fails the connection if the connection times out in this time interval or no data is received */
connectTimeoutMs: number
/** Default timeout for queries, undefined for no timeout */
defaultQueryTimeoutMs: number | undefined
/** ping-pong interval for WS connection */
keepAliveIntervalMs: number
/** proxy agent */