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
+4 -2
View File
@@ -3,7 +3,8 @@ import { ArrowLeft, ChevronRight, Loader2, MessageCircle, Send, UserRound, X } f
import { io } from 'socket.io-client';
import type { Socket } from 'socket.io-client';
import {
CHAT_SOCKET_BASE_URL,
CHAT_SOCKET_ORIGIN,
CHAT_SOCKET_PATH,
createInstructorChatMessage,
getInstructorChatThread,
listInstructorChatThreads,
@@ -100,8 +101,9 @@ export function InstructorChatPanel({ session, open, initialThreadId = null, ini
useEffect(() => {
if (!open) return;
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'],
});