Compare commits

..

No commits in common. "f8d822ace7feed7a477f39d0c046173361b7067f" and "b1a760336db67ad411d6de24ef184ed18d7c7383" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ class MetricsService {
}
console.log('Connecting WebSocket...');
this.socket = io(`${this.baseUrl.replace('http', 'ws')}/api/metrics-ws`, {
this.socket = io(`${this.baseUrl.replace('http', 'ws')}/ws`, {
transports: ['websocket'],
withCredentials: true,
});
@ -152,6 +152,6 @@ class MetricsService {
}
// Создаем экземпляр сервиса
const metricsService = new MetricsService(import.meta.env.VITE_BACK_URL);
const metricsService = new MetricsService();
export default metricsService;