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

Fixing auto reconnect to not reconnect when the page is refreshed. #285

Merged
merged 5 commits into from
Jun 29, 2023
Merged

Fixing auto reconnect to not reconnect when the page is refreshed. #285

merged 5 commits into from
Jun 29, 2023

Conversation

mcottontensor
Copy link
Contributor

@mcottontensor mcottontensor commented Jun 29, 2023

Relevant components:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

Problem statement:

Described in #281
When the option "OfferToReceive" is set, if the user refreshes the page during a stream the frontend will immediately try to reconnect to the SS before immediately disconnecting again.

Solution

The on close event now checks the code of the event to check whether the close event was caused by the local machine or not.

Copy link
Collaborator

@Belchy06 Belchy06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Matthew Cotton <matt@tensorworks.com.au>
@mcottontensor mcottontensor merged commit 3663107 into EpicGames:master Jun 29, 2023
1 check passed
@mcottontensor mcottontensor deleted the fix_autoconnect branch June 29, 2023 05:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants