Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-js): limit the fifth-attempt lastError reason to Baileys

Yudhi Armyndharis6bf2412c084b
diff --git a/sdk/javascript/src/types.ts b/sdk/javascript/src/types.ts
index cad439785..49741d626 100644
--- a/sdk/javascript/src/types.ts
+++ b/sdk/javascript/src/types.ts
@@ -66,9 +66,9 @@ export interface SessionResponse {
createdAt: string;
updatedAt: string;
/**
- * Human-readable reason while `status` is `'failed'` or `'action_required'`, or `'initializing'` during
- * a prolonged automatic reconnect (fifth attempt onward, or while a failed relaunch waits to retry);
- * `null` otherwise.
+ * Human-readable reason while `status` is `'failed'` or `'action_required'`, or `'initializing'` from the
+ * fifth attempt of a reconnect the engine runs itself (Baileys), or while a reconnect waits to retry after a
+ * failed relaunch (either engine); `null` otherwise.
*/
lastError?: string | null;
/**