简体   繁体   English

套接字io连接被laravel echo拒绝

[英]socket io connection refused with laravel echo

I keep getting a connection refused error: https://example.com:6001/socket.io/?EIO=3&transport=polling&t=LqznKQ9 net::ERR_CONNECTION_REFUSED 我一直收到拒绝连接的错误消息: https ://example.com:6001/socket.io/ ? EIO =3& transport = polling & t = LqznKQ9 net :: ERR_CONNECTION_REFUSED

On the vps ip tables is disabled, no firewall, laravel echo starts fine. 在vps ip表上被禁用,没有防火墙,laravel echo开始正常。

Config file: 配置文件:

{
"appKey": "3c2ksu8rn9qhjg3c1t5p2k8ril2st0drid6h81bgumb1k5hbgt3790orreb1",
"authHost": "https://example.com:443",
"authEndpoint": "/broadcasting/auth",
    "verifyAuthPath": true,
    "verifyAuthServer": false,
"database": "redis",
"databaseConfig": {
    "redis": {},
    "sqlite": {
        "databasePath": "/database/laravel-echo-server.sqlite"
    }
},
"devMode": true,
"host": "example.com",
"port": "6001",
"referrers": [],
"socketio": {},
"sslCertPath": "/etc/apache2/ssl/example_com.crt",
"sslKeyPath": "/etc/apache2/ssl/example.key",
"protocol": "https"
}

Any tips what could be the issue? 任何提示可能是什么问题?

Thanks! 谢谢!

Did you start laravel-echo-server with command: laravel-echo-server start ? 您是否使用命令laravel-echo-server start启动了laravel-echo-server? Or you can create the js file with code: 或者您可以使用以下代码创建js文件:

var echo = require('laravel-echo-server');
echo.run();

and run this something this: node server.js 并运行以下内容:node server.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM