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

Include create, reconnect, and update events (with associated tests) #273

Merged

Conversation

itsjayway
Copy link
Contributor

@itsjayway itsjayway commented Jun 16, 2023

Relevant components:

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

Problem statement:

#270

Solution

uses contextual structure of methods and events to add the new events

Documentation

WIP

Test Plan and Compatibility

event emitters should not affect functionality; implementation of these functions are complemented by the new tests

@itsjayway
Copy link
Contributor Author

please feel free to provide your feedback and suggestions, especially with the tests; they're a top weakness of mine

@itsjayway itsjayway changed the title add create, reconnect, update events and tests Include create, reconnect, and update events (with associated tests) Jun 16, 2023
lukehb
lukehb previously requested changes Jun 16, 2023
Copy link
Contributor

@lukehb lukehb left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for this.

Can I ask you change the events to StreamPreConnect and StreamPreDisconnect - sorry that wasn't captured in the issue originally.

@itsjayway
Copy link
Contributor Author

no worries—pushed!
thank you @lukehb

@mcottontensor mcottontensor self-requested a review June 20, 2023 03:45
pixelStreaming.disconnect();
pixelStreaming.connect();

expect(streamReconnectSpy).toHaveBeenCalled();
Copy link
Contributor

Choose a reason for hiding this comment

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

This appears to be failing tests. I believe because reconnect isn't being called since connect is manually immediately called.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, my mistake, thank you for fix!

@mcottontensor mcottontensor merged commit f1edea5 into EpicGames:master Jun 21, 2023
1 check passed
@itsjayway itsjayway deleted the jibranabsarulislam/add-CRD-events branch June 21, 2023 00:46
mcottontensor added a commit that referenced this pull request Jun 21, 2023
…d-CRD-events

Include create, reconnect, and update events (with associated tests)
mcottontensor added a commit that referenced this pull request Jun 21, 2023
…d-CRD-events

Include create, reconnect, and update events (with associated tests)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

3 participants