请问,阿里云上为什么使用不了websocket
Re请问,阿里云上为什么使用不了websocket
下面的JS,连接websocket,也是连接不了
chart.js:16 WebSocket connection to 'ws://xxxxxxxx:18080/socket/receiver' failed: Error during WebSocket handshake: Unexpected response code: 404
_Socket.initialize = function() {if (window.location.protocol == 'http:') { _Socket.connect('ws://' + window.location.host + '/socket/receiver');} else { _Socket.connect('wss://' + window.location.host + '/socket/receiver');};谁知道什么情况?
赞0
踩0