installing socketIO and testing the WebSocket connection

This commit is contained in:
Beverly Nguyen
2024-05-20 16:21:38 -07:00
parent 8e0724effa
commit ad68c26450
6 changed files with 43 additions and 0 deletions

View File

@@ -32,6 +32,7 @@
{# google #}
<script type="text/javascript" src="{{ asset_url('js/gtm_head.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/chart.umd.js') }}"></script>
<script src="{{ url_for('static', filename='js/socket.io.min.js') }}"></script>
<meta name="google-site-verification" content="niWnSqImOWz6mVQTYqNb5tFK8HaKSB4b3ED4Z9gtUQ0" />
{% if g.hide_from_search_engines %}
<meta name="robots" content="noindex" />

View File

@@ -22,6 +22,9 @@
Messages sent
</h2>
<input id="message" autocomplete="off"><button id="sendButton">Send</button>
<ul id="messages"></ul>
{{ ajax_block(partials, updates_url, 'inbox') }}
{{ ajax_block(partials, updates_url, 'totals') }}