🧬Array Driver
The default app driver used by soketi is the array
driver. This is a static, in-memory array of app credentials that is kept in memory while the underlying uWS Server process is running. Whenever a connection is made or an event is broadcast, the app credentials will be verified against these in-memory credentials.
By default, default values are defined for the app ID, key, and secret for ease of installation and development. However, you should change these credentials before launching your application in production.
For rate limits and max connections options, setting the variable value to -1
will disable the rate limits and / or max allowed connections.
Environment Variables
Name | Default | Possible values | Description |
---|---|---|---|
|
| Any string | The default app id for the array driver. |
|
| Any string | The default app key for the array driver. |
|
| Any string | The default app secret for the array driver. |
|
| Any integer | The default app's limit of concurrent connections. |
|
|
| Whether client messages should be enabled for the app. |
|
|
| Whether the app is activated. This option can be used to disable an app. |
|
| Any integer | The default app's limit of |
|
| Any integer | The default app's limit of client events broadcast per second by a single socket. You can configure rate limiting database store |
|
| Any integer | The default app's limit of read endpoint calls per second. You can configure rate limiting database store |
|
|
| The webhooks list for the app. See below |
|
|
| Enable/disable the user authentication feature. |
App-level Limits
The array
driver does not support setting limits at the app-level variables using environment variables. However, you can use configuration files to set limits for your apps:
Keep in mind, the fields are optional and you can omit them in case you want to keep the default ones defined with the events & channels limits environment variables.
Last updated