add websockets

This commit is contained in:
2025-12-03 11:31:36 -06:00
parent 4d669317c4
commit 00ba06de53
8 changed files with 87 additions and 1 deletions

13
templates/ws-example.html Normal file
View File

@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<title>Websocket Test</title>
<script src="/assets/js/websocket_example.js"></script>
</head>
<body>
<h1 id="msg">Connection Closed</h1>
<p id="msgCount">0</p>
<button type="button" onclick="openConn()">Open</button>
<button type="button" onclick="closeConn()">Close</button>
</body>
</html>