fix: set 5-minute TTL for chat services

Services were expiring after 60 seconds (default offer TTL).
Set TTL to 300000ms (5 minutes) so chat services stay discoverable
while users have the page open.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-05 19:44:36 +01:00
parent 3d9a1c27bd
commit 2550c1ac3f

View File

@@ -179,6 +179,7 @@ export default function App() {
privateKey: keypair.privateKey,
serviceFqn: 'chat.rondevu@1.0.0',
isPublic: true,
ttl: 300000, // 5 minutes - service stays alive while page is open
poolSize: 10, // Support up to 10 simultaneous connections
rtcConfig: RTC_CONFIG,
handler: (channel, peer, connectionId) => {