From 3973030c9d7795779e6b3d309e6788f5b7077ecb Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 29 Mar 2020 15:33:03 -0700 Subject: Fix socket issue --- modern/src/SocketController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/SocketController.js') 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) => { -- cgit v1.2.3