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

Refactor Call Fabric SDK #983

Merged
merged 29 commits into from
Apr 4, 2024
Merged

Refactor Call Fabric SDK #983

merged 29 commits into from
Apr 4, 2024

Conversation

iAmmar7
Copy link
Collaborator

@iAmmar7 iAmmar7 commented Mar 12, 2024

Description

  • Simplify the unified call fabric logic
  • Eliminate the instance map usage from the BaseSession
  • Introduce CallSegments array
  • Introduce a CallFabric worker

Type of change

  • Internal refactoring
  • Bug fix (bugfix - non-breaking)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Code snippets

In case of new feature or breaking changes, please include code snippets.

Copy link

changeset-bot bot commented Mar 12, 2024

🦋 Changeset detected

Latest commit: 8822391

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@signalwire/webrtc Patch
@signalwire/core Patch
@signalwire/js Patch
@signalwire/realtime-api Patch
@signalwire/web-api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@jpsantosbh jpsantosbh left a comment

Choose a reason for hiding this comment

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

nice

@@ -97,8 +105,8 @@ export class WSClient {
watchMediaPackets: false,
// watchMediaPacketsTimeout:,
nodeId: params.nodeId,
eventsWatcher: unifiedEventsWatcher,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Apart from this change, all the other changes in this file are due to the prettier format.

@iAmmar7
Copy link
Collaborator Author

iAmmar7 commented Mar 14, 2024

The Call Facade object is yet to be created but for now, this PR handles the Call Segments creation and stores those into an array which is accessible via BaseComponent. With this CallSegment array and the member instances stored in the InstanceMap, it's easier to pick self and target to perform actions.

@iAmmar7 iAmmar7 requested a review from jpsantosbh April 1, 2024 17:11
@iAmmar7 iAmmar7 requested a review from ayeminag April 4, 2024 13:06
@iAmmar7 iAmmar7 merged commit 3d6a4fb into dev Apr 4, 2024
11 of 20 checks passed
@iAmmar7 iAmmar7 deleted the aa/refactor-cf branch April 4, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants