【问题标题】:could not be authenticated to presence-chats-channel (Client can not be authenticated, got HTTP status 403) Laravel Echo Server无法通过在线聊天频道进行身份验证(客户端无法通过身份验证,获得 HTTP 状态 403)Laravel Echo 服务器
【发布时间】:2020-07-24 12:35:47
【问题描述】:

一切正常,但是当我尝试运行时

laravel-echo-server start 

从主管出现以下错误。

[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

【问题讨论】:

    标签: php laravel socket.io laravel-echo echo-server


    【解决方案1】:

    我通过从 vue 组件中删除以下代码解决了这个问题。

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

    【讨论】:

      猜你喜欢
      • 2019-01-25
      • 2018-11-24
      • 1970-01-01
      • 2018-02-19
      • 2019-01-04
      • 2018-11-21
      • 1970-01-01
      • 2021-07-18
      • 1970-01-01
      相关资源
      最近更新 更多