Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant pick up events from private channels #67

Open
hallowcard13 opened this issue Feb 3, 2022 · 6 comments
Open

Cant pick up events from private channels #67

hallowcard13 opened this issue Feb 3, 2022 · 6 comments

Comments

@hallowcard13
Copy link

hallowcard13 commented Feb 3, 2022

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

Please Help, been stuck for days

@devzom
Copy link

devzom commented Feb 3, 2022

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
Copy link
Author

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
Copy link

devzom commented Feb 3, 2022

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

@hallowcard13
Copy link
Author

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
Copy link
Author

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
Copy link

devzom commented Feb 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants