acceptable-dream-85180
08/12/2025, 7:05 PMtall-airline-16756
08/12/2025, 7:05 PMtall-airline-16756
08/12/2025, 7:06 PMprepareConnection
method — it doesn’t actually fire a specific room event to let you know the room is ready. Instead, it’s an asynchronous method, so you can tell it’s done by simply awaiting it. Here’s a little example:
// JavaScript/TypeScript
try {
await room.prepareConnection(url, token);
console.log('Connection preparation completed');
} catch (error) {
console.log('Connection preparation failed:', error);
}
Also, room events like Connected
, Reconnecting
, and ConnectionStateChanged
are all about the actual connection state changes, not the preparation part. If you have any other questions or need a hand, just give me a shout!
Sources: examples/demo/demo.ts | README.md