soketi
  • ๐Ÿ“กsoketi
  • ๐Ÿ†Benchmarks
  • ๐ŸŽ‰Support
  • ๐ŸคContributing
  • ๐Ÿ“ผVideo Courses
  • ๐Ÿ˜ขKnown Limitations
  • Getting started
    • โฌ†๏ธUpgrading from 0.x
    • ๐Ÿš€Installation
      • CLI Installation
      • Docker
      • Helm Charts
      • Laravel Sail (Docker)
    • ๐Ÿ’ฟConfiguring the server
    • ๐Ÿ”SSL Configuration
    • ๐ŸŽจClient Configuration
      • Pusher SDK
      • Laravel Echo
    • ๐Ÿ’ปBackend Configuration
      • Pusher SDK
      • Laravel Broadcasting
      • Nginx Configuration
    • ๐Ÿง Redis Configuration
  • App Management
    • ๐ŸŽŸ๏ธIntroduction
    • ๐ŸงฌArray Driver
    • ๐Ÿ›ข๏ธSQL Drivers
      • ๐ŸฌMySQL
      • ๐Ÿ˜PostgreSQL
      • โ›ฒDatabase Pooling
    • ๐Ÿ‘พDynamoDB
  • Rate Limiting & Limits
    • โ›”Broadcast Rate Limiting
    • ๐Ÿ‘ฅEvents & Channels Limits
  • Advanced Usage
    • โ†”๏ธHorizontal Scaling
      • ๐Ÿค–Running Modes
      • ๐Ÿง Redis Configuration
      • ๐Ÿง™โ™‚ ๐Ÿง™โ™‚ ๐Ÿง™โ™‚ NATS Configuration
      • ๐Ÿ—ƒ๏ธPrivate Network Configuration
      • ๐Ÿ˜‘Ok, what to choose?
    • ๐Ÿ›‘Graceful Shutdowns & Real-time monitoring
    • ๐Ÿ“ˆPrometheus Metrics
    • ๐Ÿ”—HTTP Webhooks
      • ๐Ÿ“AWS Lambda trigger
    • ๐Ÿ•›Queues
      • โ›“๏ธAWS SQS FIFO
      • ๐Ÿง Redis
    • ๐Ÿ“Caching
    • โš›๏ธUser Authentication
    • ๐ŸคพEnhancing Performance
      • ๐Ÿ”€New traffic redirection
  • Network Watcher
    • ๐Ÿš€Installation
    • ๐Ÿ’ฟEnvironment Variables
็”ฑ GitBook ๆไพ›ๆ”ฏๆŒ
ๅœจๆœฌ้กต
ๅœจGitHubไธŠ็ผ–่พ‘
  1. Advanced Usage
  2. Horizontal Scaling

๐Ÿง™โ™‚ ๐Ÿง™โ™‚ ๐Ÿง™โ™‚ NATS Configuration

ไธŠไธ€้กตRedis Configurationไธ‹ไธ€้กตPrivate Network Configuration

ๆœ€ๅŽๆ›ดๆ–ฐไบŽ2ๅนดๅ‰

Alternative to Redis, you may use to communicate between node instances of soketi.

These environment variables work only when SOKETI_ADAPTER_DRIVER is set to nats.

Environment Variables

Name
Default
Possible values
Description

SOKETI_ADAPTER_NATS_PREFIX

''

Any string

The NATS adapter prefix.

SOKETI_ADAPTER_NATS_SERVERS

['127.0.0.1:4222']

Array in JSON-formatted string

The list of servers to connect to for NATS.

SOKETI_ADAPTER_NATS_USER

null

Any string

The user used to authenticate NATS requests.

SOKETI_ADAPTER_NATS_PASSWORD

null

Any string

The password used to authenticate NATS requests.

SOKETI_ADAPTER_NATS_TOKEN

null

Any string

The JWT token used to authenticate NATS requests (as alternative to user and password).

SOKETI_ADAPTER_NATS_TIMEOUT

10000

Any number (milliseconds).

The connection timeout for NATS.

SOKETI_ADAPTER_NATS_REQUESTS_TIMEOUT

5000

Any number (milliseconds).

The time to wait for cross-node requests. .

โ†”๏ธ
NATS
See ADAPTER_CLUSTER_REQUESTS_TIMEOUT