diff options
-rw-r--r-- | modern/src/SocketController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index f915c999..6de3369a 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -28,7 +28,7 @@ const SocketController = (props) => { const socket = new WebSocket(protocol + '//' + window.location.host + '/api/socket'); socket.onclose = () => { - setTimeout(() => this.connectSocket(), 60 * 1000); + setTimeout(() => connectSocket(), 60 * 1000); }; socket.onmessage = (event) => { |