Configuration
Detailed description of available module options.
Default configuration
By default, the module uses the following configuration values that you can adjust:
If you don't specify any value in your nuxt.config.ts
, then the default config will be used on plugin initialization.
Overrides
Module configuration is exposed to runtimeConfig
property of your Nuxt app, so you can override either in echo
module config or runtimeConfig.public.echo
property.
Environment variables
It is possible to override options via environment variables too. It might be useful when you want to use .env
file to provide key
for the broadcast backend.
And here is what it will look like in .env
file:
Available options
For any additional configurations, you can adjust the next list of available parameters:
Additional properties
When you are using the Pusher backend, you may need to assign additional properties to your Echo instance object such as:
enableStats
activityTimeout
etc
For these, you can override echo.properties
parameter to pass all the details that are not included in the default config:
Last updated