mirror of
https://github.com/xtr-dev/rondevu-demo.git
synced 2025-12-10 10:53:22 +00:00
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:
@@ -179,6 +179,7 @@ export default function App() {
|
|||||||
privateKey: keypair.privateKey,
|
privateKey: keypair.privateKey,
|
||||||
serviceFqn: 'chat.rondevu@1.0.0',
|
serviceFqn: 'chat.rondevu@1.0.0',
|
||||||
isPublic: true,
|
isPublic: true,
|
||||||
|
ttl: 300000, // 5 minutes - service stays alive while page is open
|
||||||
poolSize: 10, // Support up to 10 simultaneous connections
|
poolSize: 10, // Support up to 10 simultaneous connections
|
||||||
rtcConfig: RTC_CONFIG,
|
rtcConfig: RTC_CONFIG,
|
||||||
handler: (channel, peer, connectionId) => {
|
handler: (channel, peer, connectionId) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user