]> git.digitality.be Git - pdw25-26/commitdiff
fix(web): socketService URL dynamique via window.location.origin
authorSteph Ponzo <ponzo.stephane2@gmail.com>
Sun, 1 Mar 2026 12:00:02 +0000 (13:00 +0100)
committerSteph Ponzo <ponzo.stephane2@gmail.com>
Sun, 1 Mar 2026 12:00:02 +0000 (13:00 +0100)
Wallette/web/socketService.js

index 54012f4f5394d794d7d944576a400b797f608ffc..7dd0794ce8681ccac04d9da36eeeb30384389eed 100644 (file)
@@ -15,7 +15,7 @@ import { io } from 'socket.io-client';
 // L'adresse du serveur (à changer selon l'environnement)
 // On passe par le gateway :3000 qui proxifie le WebSocket
 // vers le alerts-service :3003 automatiquement
-const SERVER_URL = 'http://localhost:3000';
+const SERVER_URL =  window.location.origin;
 
 // ───────────────────────────────────────────────────────────
 // VARIABLES