Änderung: Aktualisierung der WebSocket-URLs und Protokollanpassungen
Änderungen: - Die WebSocket-URLs für Daemon und Chat wurden aktualisiert, um spezifische Ports zu verwenden. - Der Daemon WebSocket wird nun mit dem Protokoll 'wss' initialisiert und verwendet das 'yourpart-protocol'. Diese Anpassungen verbessern die Verbindungsstabilität und die Protokollierung der WebSocket-Interaktionen.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user