Skip to content

Commit

Permalink
Update better
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Sep 25, 2024
1 parent 15e8d2e commit 5beafc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions front-end/src/api/use-socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ export const useSocket = (): [

socket.io.on('reconnect', (a) => {
console.log(`Reconnected after ${a} attempts`);
idMsgRef.current = {
currentUrl: window.location.href,
fieldNumbers: fields.map((d: any) => d.field).join(','),
followerMode: followerModeEnabled ? 1 : 0,
followerApiHost: leaderApiHost,
audienceDisplayChroma: (chromaKey ?? '').replaceAll('"', '')
};
socket?.emit('identify', idMsgRef.current);
});

Expand Down

0 comments on commit 5beafc8

Please sign in to comment.