install socket io and getting an example up

This commit is contained in:
Beverly Nguyen
2025-03-26 12:54:21 -07:00
parent 3af8f782ec
commit e0e8c56a61
9 changed files with 177 additions and 6 deletions

View File

@@ -12,3 +12,17 @@
</div>
{% endif %}
{% endmacro %}
{% macro socket_block(partials, job_id, key, finished=False, form='') %}
{% if not finished %}
<div
data-module="live-content"
data-key="{{ key }}"
data-room="job-{{ job_id }}"
>
{% endif %}
{{ partials[key]|safe }}
{% if not finished %}
</div>
{% endif %}
{% endmacro %}