First Commit

This commit is contained in:
Ralex91
2024-01-31 20:06:10 +01:00
commit e122fe1078
58 changed files with 6853 additions and 0 deletions

14
socket/web.js Normal file
View File

@@ -0,0 +1,14 @@
import { Server } from "socket.io"
const io = new Server({
cors: {
origin: "*",
},
})
io.on("connection", (socket) => {
console.log("a user connected")
io.to(socket.id).emit("message", "Hello from server")
})
io.listen(5057)