CentOS Linux 7.5.1804 (Core) Nginx 1.17.4 php7.2
版本3.0
服务器防火墙以及宝塔都放行了20002,20003. 网站启用了 强制HTTPS
后台添加了客服,点击客服名字,报错,提示
chat.js:5 Mixed Content: The page at '[img]file:///C:\Users\PC\AppData\Roaming\Tencent\TIM\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png[/img]https://shop.1111.cn/customer/chat/1568778897' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[img]file:///C:\Users\PC\AppData\Roaming\Tencent\TIM\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png[/img]shop.1111.cn:20003/'. This request has been blocked; this endpoint must be available over WSS.
---------------------------------------------------------------------------
如果关闭了强制 HTTPS
还是报错,提示
WebSocket is already in CLOSING or CLOSED state.
chat.js:5 [color=red !important]WebSocket connection to 'ws://shop.1111.cn:20003/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED[/color]
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}