This commit is contained in:
2026-07-02 11:38:21 +02:00
parent cc0f223c33
commit c99602eb53
14 changed files with 520 additions and 93 deletions
+6 -2
View File
@@ -3,13 +3,17 @@
<script>
const socket = io("http://localhost:8201", {
path: '/ws/socket.io',
query: 'id=channel'
query: 'id=1000_channel'
});
socket.on('data', (arg) => {
socket.on('data', (arg, callback) => {
const doc = document.getElementById('test');
const div = document.createElement('div');
div.innerHTML = JSON.stringify(arg);
doc.append(div);
callback({
received: true
});
});
</script>