UMAIR ALI
UMAIR ALI

Reputation: 1115

could not be authenticated to presence-chats-channel (Client can not be authenticated, got HTTP status 403) Laravel Echo Server

Everything was working fine but when i try to run

laravel-echo-server start 

from supervisor below error appear.

[11:25:15 PM] - zmMtehwMctWVHxFBAAAB joined channel: chats-channel
[11:25:16 PM] - Preparing authentication request to: https://test.net
[11:25:16 PM] - Sending auth request to: https://test.net/broadcasting/auth

⚠ [11:25:16 PM] - zmMtehwMctWVHxFBAAAB could not be authenticated to presence-chats-channel

Client can not be authenticated, got HTTP status 403

Upvotes: 0

Views: 448

Answers (1)

UMAIR ALI
UMAIR ALI

Reputation: 1115

I solved this issue by removing the below code from the vue component.

Echo.join(chat.${roomId})
.here((users) => {
//
})
.joining((user) => {
console.log(user.name);
})
.leaving((user) => {
console.log(user.name);
});

Upvotes: 0

Related Questions