|
@@ -4,7 +4,7 @@ import Store from '@/store'
|
|
|
export const webSocket = {
|
|
|
methods: {
|
|
|
connectWebSocket(userId) {
|
|
|
- let webSocket = new WebSocket(`ws://${$c.hostname}:8872/api/report/api/ws/`+userId)
|
|
|
+ let webSocket = new WebSocket(`ws://${this.$c.hostname}:8872/api/report/api/ws/`+userId)
|
|
|
// let webSocket = new WebSocket(`ws://192.168.1.24:8872/api/report/api/ws/`+userId)
|
|
|
Store.commit('SET_WEB_SOCKET', webSocket)
|
|
|
webSocket.onopen = () => {
|