- Preparing search index...
- The search index is not available
baileys
Function getErrorCodeFromStreamError
- getErrorCodeFromStreamError(node): {
reason: string;
statusCode: number;
}
-
Returns {
reason: string;
statusCode: number;
}
-
reason: string
-
statusCode: number
Stream errors generally provide a reason, map that to a baileys DisconnectReason