Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
force store init in case the WS is down
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Jul 23, 2017
1 parent 9279d0d commit d46bc15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/vue/src/components/global/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ export const connect = () => {
socket = new ReconnectingWebSocket(wsPath);

setTimeout(() => {

// in case we cannot connect
if(!info.connected)
if(!info.connected) {
initializeState();
bus.$emit('WS_STATUS_CHANGE', info);
}
}, 500);

socket.onopen = () => {
Expand Down

0 comments on commit d46bc15

Please sign in to comment.