Socket reload

This commit is contained in:
Elizabeth Cray 2023-06-18 04:29:39 -04:00
parent dc701f957a
commit 39f8aa646f

View File

@ -117,8 +117,8 @@ let loadSocket = () => {
console.log('%cSocket Closed', 'color: #BF616A; font-size: 18px; font-family: serif;') console.log('%cSocket Closed', 'color: #BF616A; font-size: 18px; font-family: serif;')
socketStatus = false socketStatus = false
setTimeout(() => { setTimeout(() => {
loadSocket() window.location.reload()
}, 1200) }, 3000)
} }
socket.onerror = (e) => { socket.onerror = (e) => {
console.log('%cSocket Error', 'color: #BF616A; font-size: 18px; font-family: monospace;') console.log('%cSocket Error', 'color: #BF616A; font-size: 18px; font-family: monospace;')