mirror of
https://github.com/xtr-dev/rondevu-demo.git
synced 2025-12-15 12:33:23 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user