aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src')
-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 c100df14..f0d70cee 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);
};