小编Arp*_*pit的帖子

带有 ssl 和 nginx 的 Laravel-websockets

我一直在尝试使用服务器上 nginx 上的 ssl 让 laravel-websockets 在我的网站上工作。我一直在使用 Laravel 和 echo。它在我的本地计算机上完美运行。

这是我在控制台中遇到的错误

WebSocket connection to 'wss://www.site.com:6001/app/passcode?protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Run Code Online (Sandbox Code Playgroud)

这是我的文件

配置/广播.php


    /*
    |--------------------------------------------------------------------------
    | Default Broadcaster
    |--------------------------------------------------------------------------
    |
    | This option controls the default broadcaster that will be used by the
    | framework when an event needs to be broadcast. You may set this to
    | any of the connections defined in the "connections" array below.
    |
    | Supported: "pusher", "redis", "log", "null"
    |
    */

    'default' => env('BROADCAST_DRIVER', …
Run Code Online (Sandbox Code Playgroud)

nginx websocket laravel laravel-websockets

5
推荐指数
0
解决办法
1194
查看次数

标签 统计

laravel ×1

laravel-websockets ×1

nginx ×1

websocket ×1