Skip to content

Commit 12a3150

Browse files
committed
feat: optimistically regenerate new credentials on disconnect
1 parent 1fd763f commit 12a3150

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/room/Room.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
990990
this.handleDisconnect(stopTracks, DisconnectReason.CLIENT_INITIATED);
991991
/* @ts-ignore */
992992
this.engine = undefined;
993+
this.connectionCredentials?.generate();
993994
} finally {
994995
unlock();
995996
}

0 commit comments

Comments
 (0)