Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
Hot Update log to analyse connection lost problem
Browse files Browse the repository at this point in the history
Signed-off-by: Gregoire Parant <[email protected]>
  • Loading branch information
gparant committed May 19, 2022
1 parent 3c8e59f commit 2cc19f0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions front/src/Phaser/Game/GameScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,29 @@ export class GameScene extends DirtyScene {
}

private subscribeToStores(): void {
console.error(
"subscribeToStores => Check all subscriber undefined ",
this.userIsJitsiDominantSpeakerStoreUnsubscriber,
this.jitsiParticipantsCountStoreUnsubscriber,
this.availabilityStatusStoreUnsubscriber,
this.emoteUnsubscriber,
this.emoteMenuUnsubscriber,
this.followUsersColorStoreUnsubscriber,
this.biggestAvailableAreaStoreUnsubscriber,
this.peerStoreUnsubscriber
);
if (
this.userIsJitsiDominantSpeakerStoreUnsubscriber != undefined ||
this.jitsiParticipantsCountStoreUnsubscriber != undefined ||
this.availabilityStatusStoreUnsubscriber != undefined ||
this.emoteUnsubscriber != undefined ||
this.emoteMenuUnsubscriber != undefined ||
this.followUsersColorStoreUnsubscriber != undefined ||
this.biggestAvailableAreaStoreUnsubscriber != undefined ||
this.peerStoreUnsubscriber != undefined
)
throw new Error("subscribeToStores => Check subscriber");

this.userIsJitsiDominantSpeakerStoreUnsubscriber = userIsJitsiDominantSpeakerStore.subscribe(
(dominantSpeaker) => {
this.jitsiDominantSpeaker = dominantSpeaker;
Expand Down

0 comments on commit 2cc19f0

Please sign in to comment.