Fix datachannel name to match service pool

Changed channel name from 'chat' to 'rondevu-service' to match the
channel name created by the service pool. This fixes the connection
failure where the offerer's channel and answerer's channel had
different names and couldn't connect.

The service pool creates a channel named 'rondevu-service', so clients
must use the same name to receive that channel.

🤖 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-06 13:59:30 +01:00
parent b3dde85cd2
commit 2cbd46b27a

View File

@@ -337,8 +337,8 @@ export default function App() {
maxReconnectAttempts: 5 maxReconnectAttempts: 5
}); });
// Create data channel // Create data channel (must match service pool's channel name)
const channel = connection.createChannel('chat'); const channel = connection.createChannel('rondevu-service');
// Listen for connection events // Listen for connection events
connection.on('connected', () => { connection.on('connected', () => {