我正在尝试使用基于Beyond Code软件包的websocket部署laravel项目。 我的服务器在AWS上,我正在使用WHM。
在cPanel的终端上,我正在运行php artisan websockets:serve
行
然后我得到结果Starting the WebSocket server on port 6001...
当我使用websocket的连接加载页面时,有时会收到错误failed: Error during WebSocket handshake: Unexpected response code: 200
有时我会收到错误failed: WebSocket is closed before the connection is established.
在AWS EC2的安全组上,我允许自定义TCP端口6001和6002
有任何解决建议吗?
对于Laravel WebSockets也许是一个很好的部署教程?
我正在互联网上寻找答案,但没有任何帮助。