diff --git a/frontend/.env.local b/frontend/.env.local index b6b5b8e..c61e201 100644 --- a/frontend/.env.local +++ b/frontend/.env.local @@ -1,5 +1,7 @@ VITE_API_BASE_URL=https://www.your-part.de VITE_TINYMCE_API_KEY=xjqnfymt2wd5q95onkkwgblzexams6l6naqjs01x72ftzryg -VITE_DAEMON_SOCKET=wss://www.your-part.de/ws -VITE_CHAT_WS_URL=wss://www.your-part.de/ws +VITE_DAEMON_SOCKET=wss://www.your-part.de:4551 +VITE_CHAT_WS_URL=wss://www.your-part.de:1235 +VITE_DAEMON_SOCKET=wss://www.your-part.de/ws +VITE_CHAT_WS_URL=wss://www.your-part.de:1235 diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index 81d86d7..88ee3f3 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -127,13 +127,13 @@ const store = createStore({ return; } - const daemonUrl = import.meta.env.VITE_DAEMON_SOCKET || 'ws://www.your-part.de:4551'; + const daemonUrl = import.meta.env.VITE_DAEMON_SOCKET || 'wss://www.your-part.de:4551'; console.log('🔌 Initializing Daemon WebSocket connection to:', daemonUrl); const connectDaemonSocket = () => { try { - const daemonSocket = new WebSocket(daemonUrl); - console.log('🔌 Protocol: none (testing without subprotocol)'); + const daemonSocket = new WebSocket(daemonUrl, 'yourpart-protocol'); + console.log('🔌 Protocol: yourpart-protocol'); daemonSocket.onopen = () => { console.log('✅ Daemon WebSocket connected successfully');