first commit

This commit is contained in:
DerJesen
2025-12-11 09:49:24 +01:00
parent 212808529d
commit 5eb1c8550e
9 changed files with 107 additions and 24 deletions

View File

@@ -39,8 +39,9 @@ class WhiteboardStore {
this.whiteboardId = whiteboardId;
this.userId = userId;
// WebSocket-Verbindung herstellen
this.socket = io('http://localhost:3000/whiteboard', {
if (this.socket) return;
this.socket = io(`http://${window.location.hostname}:3000/whiteboard`, {
withCredentials: true,
transports: ['websocket', 'polling']
});