服务器改为域名访问后,springboot中的websocket如何访问

服务器用ip和端口号访问时,springboot中的websocket能连接,但是服务器申请域名后,服务器可以用域名正常访问,但websocket用域名连接失败

如果是云服务器,websocket用内网IP。