Skip to content

Commit 925227f

Browse files
committed
added log for debugging
1 parent 856d168 commit 925227f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

client/src/components/note.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,11 @@ export default function NoteApp() {
316316
}, [localUsername, roomName]);
317317

318318
useEffect(() => {
319+
console.log('Connecting to:', process.env.REACT_APP_SIGNALING_SERVER_URL);
319320
socketRef.current = socketio(process.env.REACT_APP_SIGNALING_SERVER_URL, {
320-
transports: ['polling']
321+
transports: ['websocket', 'polling'],
322+
upgrade: true,
323+
rememberUpgrade: true
321324
});
322325

323326
// Handle page refresh/close - cleanup WebRTC connections

0 commit comments

Comments
 (0)