Commit Graph

7 Commits

Author SHA1 Message Date
778fa2e3a9 Fix: Manually serialize ICE candidates for wrtc compatibility
wrtc library doesn't have toJSON() method on RTCIceCandidate.
Manually extract candidate properties instead.
2025-12-12 21:23:40 +01:00
8bb951a91c Fix: Set up ICE handlers before setLocalDescription
- Move onicecandidate handler setup before setLocalDescription
- Directly use API for sending candidates instead of signaler
- Use signaler only for receiving remote candidates
2025-12-12 21:22:39 +01:00
833bf7e519 Fix: Use same TURN config as demo (IPv4-based)
Update test script to use 57.129.61.67 instead of turn.share.fish
to match the demo's default 'ipv4-turn' preset.
2025-12-12 21:16:35 +01:00
508f050f6e Fix: Correct wrtc import for ES modules
The wrtc package needs to access default export when using dynamic import.
2025-12-12 21:13:51 +01:00
cf13672d85 Update test script to use same API URL and service version as demo
- Use api.ronde.vu instead of rondevu.xtrdev.workers.dev
- Use chat:2.0.0 instead of chat:1.0.0 to match demo
2025-12-12 21:10:50 +01:00
758fb2d4ec Improve test script error handling for missing wrtc
Better error message when wrtc is not installed, with clear
instructions on how to install it.

🤖 Generated with Claude Code
https://claude.com/claude-code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-12 20:42:08 +01:00
023be0ab67 Add Node.js test script for connecting to @bas
Adds test-connect.js script that:
- Connects to production Rondevu API
- Discovers chat service from @bas
- Establishes WebRTC connection using wrtc
- Sends 'hello' message via data channel

Usage: npm test

Requires:
- Node.js 19+ (or 18 with --experimental-global-webcrypto)
- wrtc package for WebRTC in Node.js

🤖 Generated with Claude Code
https://claude.com/claude-code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-12 20:34:41 +01:00