diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index 5aac9ff..81d86d7 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 || 'wss://www.your-part.de:4551'; + const daemonUrl = import.meta.env.VITE_DAEMON_SOCKET || 'ws://www.your-part.de:4551'; console.log('🔌 Initializing Daemon WebSocket connection to:', daemonUrl); const connectDaemonSocket = () => { try { - const daemonSocket = new WebSocket(daemonUrl, 'yourpart-protocol'); - console.log('🔌 Protocol: yourpart-protocol'); + const daemonSocket = new WebSocket(daemonUrl); + console.log('🔌 Protocol: none (testing without subprotocol)'); daemonSocket.onopen = () => { console.log('✅ Daemon WebSocket connected successfully'); @@ -166,6 +166,11 @@ const store = createStore({ url: daemonSocket.url, protocol: daemonSocket.protocol }); + console.error('❌ Browser info:', { + userAgent: navigator.userAgent, + location: window.location.href, + isSecure: window.location.protocol === 'https:' + }); retryConnection(connectDaemonSocket); };