mirror of
https://github.com/xtr-dev/rondevu-client.git
synced 2025-12-10 02:43:25 +00:00
The answerer was getting 403 Forbidden when sending ICE candidates because the server didn't know who the answerer was yet. ICE gathering starts when setLocalDescription is called, but we were calling /answer AFTER that. Fixed by sending the answer to the server BEFORE setLocalDescription: 1. Create answer SDP 2. Send answer to server (registers answererPeerId) 3. Set up ICE handler 4. Set local description (ICE gathering starts) This ensures the server has answererPeerId set before ICE candidates arrive, so they're properly authorized. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>