quick patch to stop status spam

This commit is contained in:
Thomas
2020-08-17 17:38:38 +02:00
parent 63eca90f0e
commit 663a8ca8b6
4 changed files with 36 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
const connection = new WebSocket('ws://localhost:8181/socket')
// const connection = new WebSocket('ws://localhost:8181/socket')
// const connection = new WebSocket('wss://echo.websocket.org')
// const connection = new WebSocket('wss://voozik.gltronic.ovh/socket')
const connection = new WebSocket('wss://voozik.gltronic.ovh/socket')
var alive = null
@@ -52,7 +52,7 @@ export default function createSignalPlugin () {
break
case 'roomStatus':
store.dispatch('room/setRoomStatus', data.message)
if (store.state.room.admin) store.dispatch('room/setRoomStatus', data.message)
break
case 'roomSettings':