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>
This commit is contained in:
2025-12-12 20:34:41 +01:00
parent 8959dd6616
commit 023be0ab67
2 changed files with 165 additions and 2 deletions

View File

@@ -7,7 +7,8 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"deploy": "npm run build && npx wrangler pages deploy dist --project-name=rondevu-demo"
"deploy": "npm run build && npx wrangler pages deploy dist --project-name=rondevu-demo",
"test": "node test-connect.js"
},
"dependencies": {
"@xtr-dev/rondevu-client": "file:../client",
@@ -15,7 +16,8 @@
"qrcode": "^1.5.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.6.0"
"react-hot-toast": "^2.6.0",
"wrtc": "^0.4.7"
},
"devDependencies": {
"@types/react": "^18.2.0",