A dead simple real time webchat with authorization using websockets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
412 B

3 years ago
{{ template "base" . }}
{{ define "content" }}
<p>
logged in as <b id="logged_username" onload=""></b>
</p>
<pre id="chatbox"></pre>
<div>
<input type="text" id="text_input">
<input type="button" value="Send" id="send_button">
<input type="button" value="Disconnect" id="disconnect_button">
</div>
<script src="/scripts/user.js"></script>
<script src="/scripts/chat.js"></script>
{{ end }}