ваше сообщение коммита

This commit is contained in:
2025-07-09 01:18:58 +03:00
parent c18b674364
commit 81dced1f11
54 changed files with 15732 additions and 214 deletions

View File

@@ -70,7 +70,8 @@ let ws = null;
function connectWebSocket() {
if (ws) ws.close();
ws = new WebSocket('ws://localhost:8000');
const wsProtocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
ws = new WebSocket(`${wsProtocol}://${window.location.host}/ws`);
ws.onopen = () => {
console.log('[CRM] WebSocket соединение установлено');
};