Merge branch 'websockets'

This commit is contained in:
Simone Tesini 2025-08-02 02:16:25 +02:00
commit 57e6acb1ee
5 changed files with 396 additions and 18 deletions

View file

@ -0,0 +1,8 @@
<script lang="ts">
import { io } from "socket.io-client"
const socket = io("/", { path: "/ws" })
socket.on("connect", () => {
console.log("successfully connected to socket.io server")
socket.emit("join_room", { id: "gang" })
})
</script>