Update WebSocket configuration and clean up docker-compose
This commit is contained in:
@@ -73,8 +73,9 @@ onUnmounted(() => {
|
||||
});
|
||||
|
||||
function connectWebSocket() {
|
||||
// Use relative path so Vite proxy can handle it
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||
const wsUrl = `${protocol}//${window.location.hostname}:3001`;
|
||||
const wsUrl = `${protocol}//${window.location.host}/ws`;
|
||||
|
||||
ws = new WebSocket(wsUrl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user