diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-29 15:33:03 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-29 15:33:03 -0700 |
commit | 3973030c9d7795779e6b3d309e6788f5b7077ecb (patch) | |
tree | 13b4bb63fdeb1308db4966ce894a36b0d24e9648 /modern/src | |
parent | 41ca114c886797c557c705ef90cc1b7491d16d4e (diff) | |
download | trackermap-web-3973030c9d7795779e6b3d309e6788f5b7077ecb.tar.gz trackermap-web-3973030c9d7795779e6b3d309e6788f5b7077ecb.tar.bz2 trackermap-web-3973030c9d7795779e6b3d309e6788f5b7077ecb.zip |
Fix socket issue
Diffstat (limited to 'modern/src')
-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) => { |