1.0.0 • Published 1 year ago
wweb.js-remote-extension v1.0.0
wweb.js-remote-extension
Instalation
Using NPM
npm install wweb.js-remote-extension
Using YARN
yarn add wweb.js-remote-extension
How to use
import { Provider, build } from "wweb.js-remote-extension";
const awsS3Options = {
accessKeyId: "JDHTTASGGG6T...", // required - AWS Access Key
secretAccessKey: "59NyYYNAkN5jKt4J...", // required - AWS Secret Access Key
region: "us-east-2", // optional - default is "us-east-1"
bucketName: "my-bucket", // optional - default is "whatsapp-web-session-files"
};
const store = build(Provider.AwsS3, awsS3Options);
const client = new Client({
authStrategy: new RemoteAuth({
store: store, // <--- Use store here
backupSyncIntervalMs: 300000,
}),
});
1.0.0
1 year ago