nuxt-community / laravel-echo-module

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

Cant pick up events from private channels #67

Open hallowcard13 opened 2 years ago

hallowcard13 commented 2 years ago
 this.$echo.private('PrivateChannel')
            .listen('.custom-event', (e) => {
                console.log('e');
            });

Please Help, been stuck for days

devzom commented 2 years ago

Is the backend working correctly? Look into this issue #9

mostly there's an issue with channelName or eventName but first check the Redis config from above link

hallowcard13 commented 2 years ago

Is the backend working correctly? Look into this issue #9

mostly there's an issue with channelName or eventName but first check the Redis config from above link

Yes its, actually public channels are working perfectly fine, BUT FOR private channels it's not

devzom commented 2 years ago

Alright, is move deeper. Is the Auth correct? Are You receiving in redis logs that user is authenticated?

hallowcard13 commented 2 years ago

Alright, is move deeper. Is the Auth correct? Are You receiving in redis logs that user is authenticated?

Well im not using redis, i'm using pusher, and yes auth is working fine. I can connect to websocket but i cant see any subscription to the private channel

hallowcard13 commented 2 years ago

Client is being connected and authenticated properly but checking the logs its not subscribing to the private channel.

Screen Shot 2022-02-03 at 9 15 53 PM Screen Shot 2022-02-03 at 9 14 13 PM
devzom commented 2 years ago

Some time passed, are You figured out smth?

Alright, self-hosted pusher? I see You're connected and AUTH gave [200].

There's an issue with NPM echo packages, which version are You using, show me the part of package.json. That's why pretty often I'm using 1.1.0 version of this package. or v2.0.0-alpha.1

but as You see on the Issue tab there's many of issues related with problem of connection.

TIP

You should use the DevTools > Network > WS tab to inspect Websocket related stuff. Zrzut ekranu 2022-02-14 o 11 05 02