platform/lms-adm-fe release promotion snapshot
This commit is contained in:
@@ -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'],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user