first commit
This commit is contained in:
@@ -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']
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user