今天他們電腦跑報錯,顯示websocket連接異常......
昨天寫了todo 提示,但是忘了對其做修改了
var prefix = ((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.host + "/ws/client/"; if ('WebSocket' in window) { webSocket = new WebSocket(prefix + ip); }else if ('MozWebSocket' in window) { webSocket = new WebSocket(prefix + ip); }else { webSocket = new SockJS(prefix + ip); }