πŸ§™β™‚
πŸ§™β™‚ πŸ§™β™‚ NATS Configuration
Alternative to Redis, you may use NATS to communicate between node instances of soketi.
These environment variables work only when ADAPTER_DRIVER is set to nats.

Environment Variables

Name
Default
Possible values
Description
ADAPTER_NATS_PREFIX
''
Any string
The NATS adapter prefix.
ADAPTER_NATS_SERVERS
['127.0.0.1:4222']
Array in JSON-formatted string
The list of servers to connect to for NATS.
ADAPTER_NATS_USER
null
Any string
The user used to authenticate NATS requests.
ADAPTER_NATS_PASSWORD
null
Any string
The password used to authenticate NATS requests.
ADAPTER_NATS_TOKEN
null
Any string
The JWT token used to authenticate NATS requests (as alternative to user and password).
ADAPTER_NATS_TIMEOUT
10000
Any number (milliseconds).
The connection timeout for NATS.
ADAPTER_NATS_REQUESTS_TIMEOUT
5000
Any number (milliseconds).
The time to wait for cross-node requests. See ADAPTER_CLUSTER_REQUESTS_TIMEOUT .
Copy link