platform/lms-adm-fe release promotion snapshot

This commit is contained in:
2026-07-08 00:44:29 +00:00
parent 3228a9c520
commit 7d51bf81b5
3 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -26,7 +26,7 @@ import { InstructorChatPanel } from '../components/InstructorChatPanel';
import { useToast } from '../components/ToastProvider';
import autonomyLogo from '../assets/icon.png';
import { useProfileAvatar } from '../hooks/useProfileAvatar';
import { CHAT_SOCKET_BASE_URL } from '../lib/chat';
import { CHAT_SOCKET_ORIGIN, CHAT_SOCKET_PATH } from '../lib/chat';
import type { InstructorCourse } from '../lib/courses';
import { deleteProfileAvatar, notifyProfileAvatarDeleted, notifyProfileAvatarUpdated, resizeImageToWebp, uploadProfileAvatar } from '../lib/profileAvatar';
import { navItems, type AppRoute } from '../routes';
@@ -157,8 +157,9 @@ export function InstructorLayout({ session, route, onNavigate, onLogout, courses
}, [notificationPage, notificationTotalPages]);
useEffect(() => {
const socket: Socket = io(CHAT_SOCKET_BASE_URL, {
const socket: Socket = io(CHAT_SOCKET_ORIGIN, {
auth: { token: session.accessToken },
path: CHAT_SOCKET_PATH,
transports: ['websocket', 'polling'],
});