Open ricardogobbosouza opened 3 years ago
Hi @radudiaconu0, @farazappy Try this version: 2.0.0-alpha.1 Added optionsPath like https://github.com/nuxt-community/vuetify-module#optionspath
2.0.0-alpha.1
optionsPath
// app/laravel-echo/options.js export default /* async */ function (ctx) { return { authorizer (channel, options) { return { authorize (socketId, callback) { ctx.app.$axios.post(options.authEndpoint, { socket_id: socketId, channel_name: channel.name }) .then((response) => { callback(false, response.data) }) .catch((error) => { callback(true, error) }) } } } } }
PS: I need to update docs
Hi @radudiaconu0, @farazappy Try this version:
2.0.0-alpha.1
AddedoptionsPath
like https://github.com/nuxt-community/vuetify-module#optionspathPS: I need to update docs