nuxt-community / laravel-echo-module

Laravel Echo for Nuxt 2
MIT License
86 stars 31 forks source link

how to i use host or pusher #5

Closed imsidz closed 4 years ago

imsidz commented 4 years ago

how to i use these codes

    broadcaster: 'socket.io',
    host: window.location.hostname + ':6001'
ricardogobbosouza commented 4 years ago

Hi @imsidz, its simple

// nuxt.config.js
export default {
  buildModules: [
    '@nuxtjs/laravel-echo'
  ],
  echo: {
    broadcaster: 'socket.io',
    host: window.location.hostname + ':6001'
  }
}
ricardogobbosouza commented 4 years ago

I will improve the documentation

imsidz commented 4 years ago

thanks its working