This commit is contained in:
gtz 2023-12-29 17:57:29 +08:00
parent ebb8d3f184
commit 91526eb847
3 changed files with 8 additions and 8 deletions

View File

@ -397,7 +397,7 @@ export default {
// const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG' // const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG'
let date = new Date().valueOf() let date = new Date().valueOf()
console.log(date); console.log(date);
const SJGWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=COLD${date}` const SJGWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=COLD${date}`
this.SJGWebsocket = new WebSocket(SJGWsUrl) this.SJGWebsocket = new WebSocket(SJGWsUrl)
// WebSocket // WebSocket
this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen
@ -407,7 +407,7 @@ export default {
this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage
// webSocket // webSocket
this.SJGWebsocket.onclose = this.SJGWebsocketClose this.SJGWebsocket.onclose = this.SJGWebsocketClose
const cutWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=CUTTING${date}` const cutWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=CUTTING${date}`
this.cutWebsocket = new WebSocket(cutWsUrl) this.cutWebsocket = new WebSocket(cutWsUrl)
// WebSocket // WebSocket
@ -418,7 +418,7 @@ export default {
this.cutWebsocket.onmessage = this.cutWebsocketOnMessage this.cutWebsocket.onmessage = this.cutWebsocketOnMessage
// webSocket // webSocket
this.cutWebsocket.onclose = this.cutWebsocketClose this.cutWebsocket.onclose = this.cutWebsocketClose
const funWsUrl = `ws://10.70.180.10:8081/xc-screen/websocket/${date}` const funWsUrl = `ws://10.70.2.2:8080/xc-screen/websocket/${date}`
this.funWebsocket = new WebSocket(funWsUrl) this.funWebsocket = new WebSocket(funWsUrl)
// WebSocket // WebSocket
this.funWebsocket.onopen = this.funWebsocketOnOpen this.funWebsocket.onopen = this.funWebsocketOnOpen
@ -428,7 +428,7 @@ export default {
this.funWebsocket.onmessage = this.funWebsocketOnMessage this.funWebsocket.onmessage = this.funWebsocketOnMessage
// webSocket // webSocket
this.funWebsocket.onclose = this.funWebsocketClose this.funWebsocket.onclose = this.funWebsocketClose
// const wsUrl = 'ws://192.168.0.33:48082/websocket/message?userId=EN111' // const wsUrl = 'ws://10.70.2.2:8080/websocket/message?userId=EN111'
// WebSocket // WebSocket
// this.websocket = new WebSocket(wsUrl) // this.websocket = new WebSocket(wsUrl)
// // WebSocket // // WebSocket

View File

@ -636,11 +636,11 @@ export default {
if (typeof (WebSocket) === 'undefined') { if (typeof (WebSocket) === 'undefined') {
alert('您的浏览器不支持WebSocket') alert('您的浏览器不支持WebSocket')
} else { } else {
const wsUrl = `ws://192.168.0.33:48082/websocket/message?userId=EN${date}` const wsUrl = `ws://10.70.2.2:8080/websocket/message?userId=EN${date}`
// const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG' // const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG'
let date = new Date().valueOf() let date = new Date().valueOf()
console.log(date); console.log(date);
const SJGWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=SJG${date}` const SJGWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=SJG${date}`
this.SJGWebsocket = new WebSocket(SJGWsUrl) this.SJGWebsocket = new WebSocket(SJGWsUrl)
// WebSocket // WebSocket
this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen
@ -650,7 +650,7 @@ export default {
this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage
// webSocket // webSocket
this.SJGWebsocket.onclose = this.SJGWebsocketClose this.SJGWebsocket.onclose = this.SJGWebsocketClose
// const wsUrl = 'ws://192.168.0.33:48082/websocket/message?userId=EN111' // const wsUrl = 'ws://10.70.2.2:8080/websocket/message?userId=EN111'
// WebSocket // WebSocket
this.websocket = new WebSocket(wsUrl) this.websocket = new WebSocket(wsUrl)
// WebSocket // WebSocket

View File

@ -82,7 +82,7 @@ export default {
// this.getMes() // this.getMes()
// closeWebsocket() // closeWebsocket()
getDcsMsg() getDcsMsg()
// getMesMsg() getMesMsg()
console.log('mounted...........') console.log('mounted...........')
}, },
destroyed() { destroyed() {