Open nbsp opened 4 months ago
fixed on the node-sdks side. merge this before merging livekit/node-sdks#223
I think just removing close_tx and waiting for engine_tx to ends should do the work (we can close engine_tx on EngineInner)
I think just removing close_tx and waiting for engine_tx to ends should do the work (we can close engine_tx on EngineInner)
i don't think this works, await room.disconnect()
on Node doesn't unblock
should fix a race condition where in node-sdks
await room.disconnect()
doesn't wait for the room status update to change.draft because it doesn't work reliably yet: patched node-sdks still fails approximately one in fifty times.
node-sdks diff
```diff diff --git a/packages/livekit-rtc/src/room.ts b/packages/livekit-rtc/src/room.ts index 143774f..f9bebeb 100644 --- a/packages/livekit-rtc/src/room.ts +++ b/packages/livekit-rtc/src/room.ts @@ -16,6 +16,7 @@ import type { ConnectResponse, ConnectionQuality, DataPacketKind, + DisconnectCallback, DisconnectResponse, IceServer, RoomInfo, @@ -148,7 +149,7 @@ export class Room extends (EventEmitter as new () => TypedEmitter