请你帮帮我。
我的文件方案是:
var/www/turnerosac --> files base projects
/var/www/html/turnerosac --> files public
执行命令时:
/usr/bin/php /var/www/turnerosac/artisan websocket:serve
在控制台中抛出以下消息
Starting the WebSocket server on port 6001...
New connection opened for app key e992c96bf63f43766490.
Connection id 154192426.353203179 sending message {"event":"pusher:connection_established","data":"{"socket_id":"154192426.353203179","activity_timeout":30}"}
我的 bootstrap.js
window.Echo = new Echo({
broadcaster: 'pusher',
key: 'e992c96bf63f43766490',
cluster: 'us2',
wsHost: window.location.hostname,
wsPort: 6001
// disableStats: true,
});
在浏览器中