Add websocket example

This commit is contained in:
2020-10-09 12:04:25 +03:00
parent 6cccee95ca
commit cf158b6dac
9 changed files with 227 additions and 19 deletions

View File

@@ -7,7 +7,11 @@
<body onload="auth.init();">
<p>Text
<p>More text
<button onclick="auth.wsinit();">Push me</button>
<p>
<div id="wsmsgs"></div>
<div id="errmsg" style='background-color: red;'></div>
<p>
<input type="text" id="wssnd" onchange="auth.wssend($('wssnd').value);">
</body>
</html>