30abcaa2 by lihua

修改消息websocketUrl

1 parent 2fe1addd
...@@ -256,8 +256,8 @@ const messageAllRead = () => { ...@@ -256,8 +256,8 @@ const messageAllRead = () => {
256 } 256 }
257 257
258 const createServerConnect = () => { 258 const createServerConnect = () => {
259 const websocketUrl = 'http://192.168.6.20:29203/'; //测试环境的 259 const websocketUrl = '192.168.6.20:29203'; //测试环境的
260 const ws = new WebSocket(`wss://${websocketUrl}/websocket/${userData.staffGuid}`); 260 const ws = new WebSocket(`ws://${websocketUrl}/websocket/${userData.staffGuid}`);
261 ws.onopen = function () { 261 ws.onopen = function () {
262 console.log('Connected to server.'); 262 console.log('Connected to server.');
263 }; 263 };
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!