我一直收到拒绝连接错误: https://example.com:6001/socket.io/?EIO=3&transport=polling&t=LqznKQ9 net :: ERR_CONNECTION_REFUSED
在vps ip表上被禁用,没有防火墙,laravel echo开始正常。
配置文件:
{
"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"
}
任何提示可能是什么问题?
谢谢!
答案 0 :(得分:0)
您是否使用以下命令启动laravel-echo-server:laravel-echo-server start?或者您可以使用以下代码创建js文件:
var echo = require('laravel-echo-server');
echo.run();
并运行以下命令:node server.js