Skip to content

Commit

Permalink
🎨 refactor: Migrate video chat from P2P to SFU architecture using Med…
Browse files Browse the repository at this point in the history
…iaSoup
  • Loading branch information
yuminn-k committed Nov 19, 2024
1 parent b2e3e6c commit 0ac26d9
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ const LiveClass: React.FC<LiveClassProps> = ({
const handleReconnectRef = useRef<(() => void) | null>(null);
const connectWebSocketRef = useRef<(() => void) | null>(null);
const wsUrl = useMemo(() => {
const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
const baseUrl =
process.env.NODE_ENV === 'production'
? `${protocol}://${window.location.host}/ws`
: 'ws://localhost:8080';
// const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
// const baseUrl =
// process.env.NODE_ENV === 'production'
// ? `${protocol}://${window.location.host}/ws`
// : 'ws://localhost:8080';
const baseUrl = 'wss://minoriedu.com/ws';

const safeNickname = nickname || `User_${userId}`;
const params = new URLSearchParams({
Expand Down

0 comments on commit 0ac26d9

Please sign in to comment.