Websocket问题
在线求解答。我这前端首页是嵌入的第三方页面,在这个页面中需要访问后端接口,这个接口是用websocket写的(websocket.sendAllMessage()方法),在线测试这个接口却报错,不知道是什么原因。麻烦大佬们讲解一下。
已知:
1、服务器是阿里云的,安全组策略已经放开项目端口(8080)、80、443端口。
2、报错如图:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtkAAAAxCAYAAAAPxbVYAAAbZklEQVR4Ae2dzauu51XGzz/Sv6JF0IGgYBw5awVBsBIHUkLsrAMJ2ElIWhEHpQNxkA5KSmybgcRZ6aifE4sJQWvaQIvWtoLprKDwyu+c/Pa5zsp6Pt53P/ucvXNW4OX+Wh/XWvd138963r3Pzr3T//7HaT6Tg+HAcGA4MBwYDgwHhgPDgeHAcRy4N8k8LpmTy8nlcGA4MBwYDgwHhgPDgeEAHJgie77Jn59kDAeGA8OB4cBwYDgwHBgOHMyBe6e33z7NZ3IwHBgODAeGA8OB4cBwYDgwHDiOA/dO7713ms/kYDgwHBgODAeGA8OB4cBwYDhwHAemyJ6XjHnJGg4MB4YDw4HhwHBgODAcOJgDU2QfnNB5AzzuDXByObkcDgwHhgPDgeHAcOCucmCK7Cmy5811ODAcGA4MB4YDw4HhwHDgYA5MkX1wQu/q29bgnm8KhgPDgeHAcGA4MBwYDhzHgSmyp8ieN9fhwHBgODAcGA4MB4YDw4GDOTBF9sEJnTfA494AJ5eTy+HAcGA4MBwYDgwH7ioH7r35zO+efv3Df5u3lym2hwPDgeHAcGA4MBwYDgwHhgMHceDeL3/zd07/+id/fHZC/+W7392n873vnU4f/ejpRJugf/az0+kTnzid3njj0fmUsa/sF76wLoute/cefj72sdPpRz9a19HHnvbTnz6d+OyRHZnr58l9hyf0P6w55Wx85COn0xa/H0P8v/75z08vfvazpze+9rXFfLOGDLLuiXp/+slPnt59882redf/+VvfOn384x+/+jB2zVaZv7sgD+/95Cenv3juuSv7nQ3ti6NiADf4XV/LgZiz3YMBXNoHLzraqPrIVYzKLrXVRs1DjbHbr5qn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