feat: initial Regnum project structure (Vue3 + Phaser3 + Socket.io)

This commit is contained in:
kevin.lhereec committed 2026-08-17 11:34:55 +02:00
commit 1db221e468
23 files changed
+1265

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { io } from 'socket.io-client'
let socket = null
export function useSocket() {
if (!socket) {
socket = io(import.meta.env.VITE_SERVER_URL || 'http://localhost:3000', {
autoConnect: true
})
}
return socket
}