diff --git a/client/src/Table.js b/client/src/Table.js index 9989191..359d625 100755 --- a/client/src/Table.js +++ b/client/src/Table.js @@ -865,7 +865,14 @@ class Table extends React.Component { } this.keepAlive = setTimeout(() => { console.error(`No server ping for 5 seconds!`); + this.ws.close(); this.setState({ noNetwork: true }); + if (!this.websocketReconnect) { + this.websocketReconnect = setTimeout(() => { + delete this.websocketReconnect; + this.connectWebSocket(); + }, 1000); + } }, 5000); }