Fixed connecting to local server hanging on some browsers
This commit is contained in:
parent
2e20c6cd91
commit
e8cec91c7d
@ -59,6 +59,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.isSocketConnected = socket.readyState === WebSocket.OPEN
|
||||
socket.addEventListener('open', () => {
|
||||
console.log('Connected to WebSocket')
|
||||
this.isSocketConnected = true
|
||||
|
Loading…
Reference in New Issue
Block a user