use websockets to logout remote users

This commit is contained in:
2024-08-26 21:22:48 +02:00
parent 3f0ddf7138
commit 6547b6ac85
8 changed files with 164 additions and 21 deletions

View File

@ -105,7 +105,12 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="/static/js/base.js"></script>
<script type="module">
import {wsConn, socket} from "/static/js/base.js"
document.addEventListener("DOMContentLoaded", function() {
wsConn({{.IsAuthenticated}}, {{.UserID}});
});
</script>
{{ block "js" . }}
{{ end }}
</body>