webug/templates/edit.html
2019-12-14 19:07:29 +01:00

20 lines
406 B
HTML

{% extends "layout/default.html" %}
{% block extend_head %}
<script src="{{ url_for('static', filename='js/socket.io.js') }}"></script>
<script>
const socket = io();
socket.on("connect", () => {
//socket.emit("connect", {data: "ฅ^•ﻌ•^ฅ"});
});
socket.on("msg", (data) => {
console.log(data);
});
</script>
{% endblock %}
{% block content %}
{% endblock %}