connect cooldown + terminate WS instead of close

This commit is contained in:
Adhiraj
2020-09-01 13:16:50 +05:30
parent 218c9bcc18
commit 50d50e4ae9
5 changed files with 29 additions and 57 deletions

View File

@@ -65,6 +65,8 @@ export type WAConnectOptions = {
maxRetries?: number
/** should the chats be waited for */
waitForChats?: boolean
connectCooldownMs?: number
}
export type WAConnectionState = 'open' | 'connecting' | 'close'