wip tests of socket

This commit is contained in:
lenovo
2022-11-28 17:26:47 +01:00
parent 9dd87d7fa1
commit 4b7e35d991
13 changed files with 3662 additions and 95 deletions

View File

@@ -45,6 +45,9 @@
<script src="https://cdn.socket.io/4.5.3/socket.io.min.js" integrity="sha384-WPFUvHkB1aHA5TDSZi6xtDgkF0wXJcIIxXhC6h8OT8EH3fC5PWro5pWJ1THjcfEi" crossorigin="anonymous"></script>
<script>
const socket = io("http://localhost:3000");
socket.on("connect", () => {
console.log("client: connection");
});
</script>
<script src="./chat_submit_msg.js"></script>

View File

@@ -18,4 +18,3 @@ const build_new_message = (message) => {
return p;
}

View File

@@ -1,5 +1,4 @@
const submit_new_message = () => {
const div_msg = document.getElementById('msg_write');
/*