Comments (4)
This is my launch option:
this.client = await create({
session: 'client',
autoClose: 0,
waitForLogin: true,
headless: true,
statusFind: (statusSession, session) => {
console.log({ statusSession, session });
},
puppeteerOptions: {
headless: true,
userDataDir: process.env.USER_DATA_DIR || './.session-data',
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-accelerated-2d-canvas',
'--disable-canvas-aa',
'--disable-gl-drawing-for-tests',
'--use-gl=desktop',
'--no-first-run',
'--no-zygote',
'--single-process', // <- this one doesn't works in Windows
'--disable-gpu',
],
},
disableWelcome: true,
logQR: false,
// it will send the qrcode image to discord for the user to login.
catchQR: (qrCode: string) => {
this.emit('wppService.onQRCode', qrCode);
},
});
from wppconnect.
The CPU will be high when start to launch Google, after that it's fine for me.
from wppconnect.
@momokang I've solved the problem using another library than this one. I had a lot of problems with high usage of CPU in larger groups. If you want keep optimal and a low budget for the project, use WhiskeySockets/Baileys
from wppconnect.
@momokang, do you still working wiht the new library? does it good?
from wppconnect.
Related Issues (20)
- sendMessage Error: wid error: invalid wid HOT 5
- Enviar um sticker mencionando uma mensagem HOT 1
- Whatsapp Channel Feature
- Erro ao adicionar participantes
- WAPI.isLoggedIn return false
- Alguns parâmetros/itens estão faltando nesta última versão HOT 2
- Request for adding new Feature :: link with mobile number so don't want to connect with Qr Code HOT 1
- Error open browser HOT 6
- How to use proxy-server? HOT 1
- Error Cannot read properties of undefined (reading 'm') HOT 2
- listChats Return Empty Array HOT 1
- List Response Not Working
- Authentication Error HOT 2
- error contactStatus Error HOT 1
- Login to different sessions with the same account, sending messages from private chat does not trigger onAnyMessage HOT 1
- TimeoutError: waiting for target failed: timeout 30000ms exceed HOT 1
- The function addOrRemoveLabels of Whatsapp is no working HOT 2
- Preciso da ajuda para publicar o meu projeto. HOT 3
- Documentation error in "Creating a Client" page
- Fail to Login via QR code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wppconnect.