Open tjaydk opened 3 years ago
I just tried to add a pull request - but im getting a 403 so i will just add the code snippit here to fix the issue:
plugins.js
<% if (options.broadcaster === 'pusher' && !options.encrypted) { %>
window.Pusher = require('pusher-js')
<% } else if (options.broadcaster === 'pusher' && options.encrypted) { %>
window.Pusher = require('pusher-js/with-encryption')
<% } else if (options.broadcaster === 'socket.io') { %>
window.io = require('socket.io-client')
<% } %>
Hi @tjaydk
Added support on version 2.0.0-alpha.1
https://github.com/nuxt-community/laravel-echo-module/blob/main/src/runtime/plugin.js#L15
PS: I need to update docs
Hi @ricardogobbosouza Thank you - will you notify me on this thread once it is released ?
Sure
Im currently working with nuxt/laravel-echo. I want to use encrypted channels and can see that it is not included in the basic pusher.js and you have to explicitly implement Pusher with it. Where can I change which library is used ? Here is my nuxt.config.js
And in my component:
But i get the following exception:
Tried to subscribe to a private-encrypted- channel but no nacl implementation available
By changing this in
echo.js
fixes it.This should of course take into account the
encrypted
bool in the config