mirror of
https://github.com/mimamch/wa-multi-session.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #26] Backup session to AWS or similar to prevent deletion #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @matan-d on GitHub (Dec 9, 2023).
Original GitHub issue: https://github.com/mimamch/wa-multi-session/issues/26
Hey,
Great Library and works perfect!
One issue, after I rebuild my Nodejs server all of the sessions get deleted.
Is this something that I can prevent?
I was thinking maybe to backup and restore the sessions to AWS S3.
Even got the saving part working
(currently im saving the entire WASocket object as I couldnt understand which part of it actually holds the token itself)
the problem is to retrieve it back:
the restore results in an error: "SyntaxError: Unexpected token o in JSON at position 1" because the WASocket probably gets corrupted while serializing..
any suggestions?
@gillangit commented on GitHub (Mar 23, 2024):
or can we save session on mysql or mongodb?