Skip to content

Commit 7f389d4

Browse files
committed
WEBJS
1 parent 4040d86 commit 7f389d4

File tree

6 files changed

+33
-45
lines changed

6 files changed

+33
-45
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div></div>
2+
3+
You can use the following environment variables to configure the global behavior of the [**WEBJS**]({{< relref "/docs/how-to/engines#webjs" >}}) engine:
4+
- `WAHA_WEBJS_CACHE_TYPE=local` - enable cache (aka use the latest version) for the **web page** in the browser. By default, it's `none` (no cache)
5+
- `WAHA_WEBJS_WEB_VERSION=2.3000.XXXX` - set the version of the WhatsApp Web to use. By default, we're using the latest compatible version. Only works with `local` cache type.
6+
- `WAHA_WEBJS_PUPPETER_ARGS=--single-process` - Add custom puppeter arguments so you can test it affects without waiting a new release (use it with cation)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<div></div>
2+
3+
You can configure WEBJS-specific options per session via `config.webjs`.
4+
5+
- `tagsEventsOn` — Enable emission of special `tag:*` engine
6+
[**🔄 Events**]({{< relref "/docs/how-to/events" >}}) -
7+
**required** for `presence.update` and `message.ack`.
8+
9+
**WARNING**: Enabling `tagsEventsOn` this may have a performance and stability impact. Disabled by default.
10+
11+
```json
12+
{
13+
"name": "default",
14+
"config": {
15+
"webjs": {
16+
"tagsEventsOn": false
17+
}
18+
}
19+
}
20+
```
Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,11 @@ docker run -it -e "WHATSAPP_DEFAULT_ENGINE=WEBJS" devlikeapro/waha
3131
```
3232

3333
## Configuration
34-
You can use the following environment variables to configure the global behavior of the [**WEBJS**]({{< relref "/docs/how-to/engines#webjs" >}}) engine:
35-
- `WAHA_WEBJS_CACHE_TYPE=local` - enable cache (aka use the latest version) for the **web page** in the browser. By default, it's `none` (no cache)
36-
- `WAHA_WEBJS_WEB_VERSION=2.3000.XXXX` - set the version of the WhatsApp Web to use. By default, we're using the latest compatible version. Only works with `local` cache type.
34+
{{< include file="content/docs/engines/webjs/-env-config.md" >}}
3735

3836
## Session Config
39-
You can configure WEBJS-specific options per session via `config.webjs`.
40-
41-
- `tagsEventsOn` — Enable emission of special `tag:*` engine
42-
[**🔄 Events**]({{< relref "/docs/how-to/events" >}}) -
43-
**required** for `presence.update` and `message.ack`.
44-
45-
**WARNING**: Enabling `tagsEventsOn` this may have a performance and stability impact. Disabled by default.
46-
47-
```json
48-
{
49-
"name": "default",
50-
"config": {
51-
"webjs": {
52-
"tagsEventsOn": false
53-
}
54-
}
55-
}
56-
```
37+
38+
{{< include file="content/docs/engines/webjs/-session-config.md" >}}
5739

5840
## Links
5941

content/docs/how-to/config/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ Read more about [**🏭 Engines**]({{< relref "/docs/how-to/engines" >}})
112112
- `WHATSAPP_DEFAULT_ENGINE=WEBJS` - set the default engine for all sessions. Available options: `WEBJS`, `NOWEB`, `GOWS`. By default, it's `WEBJS`.
113113

114114
### WEBJS
115-
You can use some of the following environment variables to configure the [**WEBJS**]({{< relref "/docs/how-to/engines#webjs" >}}) session:
116-
- `WAHA_WEBJS_CACHE_TYPE=local` - enable cache (aka use the latest version) for the **web page** in the browser. By default, it's `none` (no cache)
117-
- `WAHA_WEBJS_WEB_VERSION=2.3000.XXXX` - set the version of the WhatsApp Web to use. By default, we're using the latest compatible version. Only works with `local` cache type.
115+
{{< include file="content/docs/engines/webjs/-env-config.md" >}}
118116

119117
## Sessions
120118

content/docs/how-to/sessions/index.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -355,26 +355,7 @@ relref "/docs/how-to/config#proxy" >}}).
355355

356356
![Dashboard - WEBJS](session-config-webjs.png)
357357

358-
You can configure
359-
[**WEBJS Engine**]({{< relref "/docs/how-to/engines" >}})
360-
-specific options per session via `config.webjs`.
361-
362-
- `tagsEventsOn` — Enable emission of special `tag:*` engine
363-
[**🔄 Events**]({{< relref "/docs/how-to/events" >}}) -
364-
**required** for `presence.update` and `message.ack`.
365-
366-
**WARNING**: Enabling `tagsEventsOn` this may have a performance and stability impact. Disabled by default.
367-
368-
```json
369-
{
370-
"name": "default",
371-
"config": {
372-
"webjs": {
373-
"tagsEventsOn": false
374-
}
375-
}
376-
}
377-
```
358+
{{< include file="content/docs/engines/webjs/-session-config.md" >}}
378359

379360
### NOWEB
380361
![Dashboard - NOWEB](session-config-noweb.png)

content/docs/overview/changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ Check the [**🔧 Install & Update**]({{< relref "/docs/how-to/install" >}}) pag
6969
🛠️ **Fixes**
7070

7171
- `2025.9.3` - **WEBJS** - add `--disable-blink-features=AutomationControlled` - {{< issue 1348 >}}
72-
- `2025.9.3` - **WEBJS** - add `WAHA_WEBJS_PUPPETER_ARGS` to add custom puppeter args (for testing primarily) - {{< issue 1348 >}}
72+
- `2025.9.3` - **WEBJS** - add `WAHA_WEBJS_PUPPETER_ARGS` to add custom puppeter args (for testing primarily)
73+
- `WAHA_WEBJS_PUPPETER_ARGS=--single-process` - {{< issue 1348 >}}
7374
- `2025.9.3` - **ChatWoot** - Fix blank card PDF message - {{< issue 1330 >}}
7475
- `2025.9.3` - **ChatWoot** - Fix blank card on receiving Audio message - {{< issue 1340 >}}
7576
- `2025.9.2` - **NOWEB** - Fix `message.any` with `fromMe: 1`

0 commit comments

Comments
 (0)