修改消息websocketUrl
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -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 | }; | ... | ... |
-
Please register or sign in to post a comment