Nuxt - Laravel Echo
GitHubNuxt Module
  • Getting Started
    • Introduction
    • Installation
  • Usage
    • Configuration
    • Cookie Authentication
    • Token Authentication
  • Composables
    • useEcho
    • useEchoConfig
    • useEchoAppConfig
  • Other
    • Token Storage
    • Interceptors
    • Breeze Nuxt template
Powered by GitBook
On this page
  1. Composables

useEchoConfig

Accessing the current Echo configuration from your Nuxt app.

This composable provides quick access to Nuxt configuration under the echo key. It is used as a part of the module implementation, so there is no particular need to use this composable in your application.

Here is an example of the call:

SomeService.ts
const echoConfig = useEchoConfig()

console.log(echoConfig.host) // print the broadcasting host URL
PrevioususeEchoNextuseEchoAppConfig

Last updated 9 months ago