|
|
|
@ -37,8 +37,9 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'; |
|
|
|
const statusSocket = new WebSocket( |
|
|
|
const statusSocket = new WebSocket( |
|
|
|
'wss://' + window.location.host + '/ws/status/' |
|
|
|
`${wsProtocol}//${window.location.host}/ws/status/` |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
function updateConnectionStatus(connected) { |
|
|
|
function updateConnectionStatus(connected) { |
|
|
|
|