一、错误信息分析
访问域名是https的,前端websockt连接用的ws,导致出错。
Mixed Content: The page at 'https://xxxxxx' was loaded over HTTPS,
but attempted to connect to the insecure WebSocket endpoint 'ws://xxxxxx/'
This request has been blocked; this endpoint must be available over WSS.
原因是,
http 对应 ws
https 对应 wss
所以换成wss连接就行了。