aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-06-26 17:13:34 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-06-26 17:13:34 -0700
commit02af1dc85084d46bd57bb2cc89d8b5aa9103ac9f (patch)
treedbc40012fb2995d3ddcd1baf8eae8cb08f1584ac /modern
parent57cf0db0f1c027bc21b2a921b170aef718a9e451 (diff)
downloadetbsa-traccar-web-02af1dc85084d46bd57bb2cc89d8b5aa9103ac9f.tar.gz
etbsa-traccar-web-02af1dc85084d46bd57bb2cc89d8b5aa9103ac9f.tar.bz2
etbsa-traccar-web-02af1dc85084d46bd57bb2cc89d8b5aa9103ac9f.zip
Remove logging
Diffstat (limited to 'modern')
-rw-r--r--modern/src/SocketController.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js
index c100df1..f0d70ce 100644
--- a/modern/src/SocketController.js
+++ b/modern/src/SocketController.js
@@ -27,12 +27,10 @@ const SocketController = () => {
const authenticated = useSelector(state => !!state.session.user);
const connectSocket = () => {
- console.log('connect socket method invoked');
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const socket = new WebSocket(protocol + '//' + window.location.host + '/api/socket');
socket.onclose = () => {
- console.log('socket closed');
setTimeout(() => {console.log('socket reconnection try');connectSocket()}, 60 * 1000);
};