Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a faster work-around for ice gathering never completing #349

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

farhat-ha
Copy link
Collaborator

  • Added calls to measure time between initiating a call and actually sending the invite
  • Added utility to created deferred promises and debouncing functions
  • Refactor Peer.ts, invite and answer calls to wait for ice gathering

XXXX-YYY

Describe your changes

📝 To Do

  • All linters pass
  • All tests pass
  • Change documentation based on my changes

✋ Manual testing

  1. Provide manual testing instructions

🦊 Browser testing

Desktop

  • Edge (latest)
  • Chrome
  • Firefox
  • Safari

📸 Screenshots

Description Screenshot
Desktop
usage.gif

- Added calls to measure time between initiating a call and actually
sending the invite
- Added utility to created deferred promises and debouncing functions
- Refactor Peer.ts, invite and answer calls to wait for ice gathering
Copy link
Member

@jonathan-telnyx jonathan-telnyx left a comment

Choose a reason for hiding this comment

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

LGTM but I have no context about webrtc

@@ -16,7 +16,12 @@ import {
RTCPeerConnection,
streamIsValid,
} from '../util/webrtc';
import { isFunction } from '../util/helpers';
import {
DeferredPromise,
Copy link
Member

Choose a reason for hiding this comment

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

I think that DeferredPromise is not being used, just deferredPromise is

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Its just used as a type here, but i noticed debounce in the next line was left unused after refactoring. Thanks for the catch

@farhat-ha farhat-ha merged commit 47e1863 into main Apr 5, 2024
2 checks passed
@farhat-ha farhat-ha deleted the haythem/call_invite_perf branch April 5, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants