mirror of
https://github.com/xtr-dev/rondevu-demo.git
synced 2025-12-10 10:53:22 +00:00
Compare commits
17 Commits
2550c1ac3f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a24514e7b | |||
| 46f0eb2e7a | |||
| 9e26ed3b66 | |||
| 7835ebd35d | |||
| 5f223356ba | |||
| ab55a96fac | |||
| 158e001055 | |||
| 9967e8d762 | |||
| 8c3f21f262 | |||
| c511b15fbf | |||
| 71454e31d1 | |||
| b2a17ce42b | |||
| 3a42f74371 | |||
| 2cbd46b27a | |||
| b3dde85cd2 | |||
| 66dc35c1a7 | |||
| 74bf2757ff |
29
CLAUDE.md
29
CLAUDE.md
@@ -6,12 +6,37 @@
|
||||
|
||||
When configuring TURN servers:
|
||||
|
||||
- ✅ **DO** include the port number in TURN URLs: `turn:server.com:3478`
|
||||
- ✅ **DO** use TURNS (secure) on port 5349 when available: `turns:server.com:5349`
|
||||
- ✅ **DO** include TURN fallback on port 3478: `turn:server.com:3478`
|
||||
- ✅ **DO** include the port number in TURN URLs (even if default)
|
||||
- ✅ **DO** test TURN connectivity before deploying: `turnutils_uclient -u user -w pass server.com 3478 -y`
|
||||
- ✅ **DO** provide both TCP and UDP transports for maximum compatibility
|
||||
- ❌ **DON'T** omit the port number (even if it's the default 3478)
|
||||
- ❌ **DON'T** omit the port number
|
||||
- ❌ **DON'T** assume TURN works without testing
|
||||
|
||||
**Current Configuration:**
|
||||
```javascript
|
||||
const RTC_CONFIG = {
|
||||
iceServers: [
|
||||
{ urls: ["stun:stun.share.fish:3478"] },
|
||||
{
|
||||
urls: [
|
||||
// TURNS (secure) - TLS/DTLS on port 5349 (preferred)
|
||||
"turns:turn.share.fish:5349?transport=tcp",
|
||||
"turns:turn.share.fish:5349?transport=udp",
|
||||
// TURN (fallback) - plain on port 3478
|
||||
"turn:turn.share.fish:3478?transport=tcp",
|
||||
"turn:turn.share.fish:3478?transport=udp",
|
||||
],
|
||||
username: "webrtcuser",
|
||||
credential: "supersecretpassword"
|
||||
}
|
||||
]
|
||||
};
|
||||
```
|
||||
|
||||
WebRTC will try TURNS (secure) endpoints first, falling back to plain TURN if needed.
|
||||
|
||||
### ICE Configuration
|
||||
|
||||
**Force Relay Mode for Testing:**
|
||||
|
||||
41
package-lock.json
generated
41
package-lock.json
generated
@@ -8,7 +8,7 @@
|
||||
"name": "rondevu-demo",
|
||||
"version": "2.0.0",
|
||||
"dependencies": {
|
||||
"@xtr-dev/rondevu-client": "^0.8.3",
|
||||
"@xtr-dev/rondevu-client": "file:../client",
|
||||
"@zxing/library": "^0.21.3",
|
||||
"qrcode": "^1.5.4",
|
||||
"react": "^18.2.0",
|
||||
@@ -22,6 +22,27 @@
|
||||
"vite": "^5.4.11"
|
||||
}
|
||||
},
|
||||
"../client": {
|
||||
"name": "@xtr-dev/rondevu-client",
|
||||
"version": "0.13.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@noble/ed25519": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
||||
"@typescript-eslint/parser": "^8.48.1",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"eslint-plugin-unicorn": "^62.0.0",
|
||||
"globals": "^16.5.0",
|
||||
"prettier": "^3.7.4",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.2.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
"version": "7.27.1",
|
||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
|
||||
@@ -745,15 +766,6 @@
|
||||
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||
}
|
||||
},
|
||||
"node_modules/@noble/ed25519": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@noble/ed25519/-/ed25519-3.0.0.tgz",
|
||||
"integrity": "sha512-QyteqMNm0GLqfa5SoYbSC3+Pvykwpn95Zgth4MFVSMKBB75ELl9tX1LAVsN4c3HXOrakHsF2gL4zWDAYCcsnzg==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://paulmillr.com/funding/"
|
||||
}
|
||||
},
|
||||
"node_modules/@rolldown/pluginutils": {
|
||||
"version": "1.0.0-beta.27",
|
||||
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",
|
||||
@@ -1171,13 +1183,8 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@xtr-dev/rondevu-client": {
|
||||
"version": "0.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@xtr-dev/rondevu-client/-/rondevu-client-0.8.3.tgz",
|
||||
"integrity": "sha512-yvTZYQiOeIuaQgTZPhO3Wud9OEi7Mwxt9b4JYWlhwaReVUNajI1fpWTO8hHu8BrkiowVDabDN0qLFpwRufEvsw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@noble/ed25519": "^3.0.0"
|
||||
}
|
||||
"resolved": "../client",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@zxing/library": {
|
||||
"version": "0.21.3",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"deploy": "npm run build && npx wrangler pages deploy dist --project-name=rondevu-demo"
|
||||
},
|
||||
"dependencies": {
|
||||
"@xtr-dev/rondevu-client": "^0.8.3",
|
||||
"@xtr-dev/rondevu-client": "file:../client",
|
||||
"@zxing/library": "^0.21.3",
|
||||
"qrcode": "^1.5.4",
|
||||
"react": "^18.2.0",
|
||||
|
||||
1368
src/App-old.jsx
Normal file
1368
src/App-old.jsx
Normal file
File diff suppressed because it is too large
Load Diff
894
src/App.jsx
894
src/App.jsx
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user