创建时间:2022-06-15
需要在<VirtualHost *:443>里面配置如下代码:
SSLProxyEngine on ProxyRequests Off ProxyPass /wss ws://localhost:2345 ProxyPassReverse /wss wss://wx.88an.top/

放行对应端口

启动 worker 以守护进程方式启动,关掉页面也还会运行服务
php think worker:gateway -d

链接测试:
new WebSocket("wss://wx.88an.top/wss");