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

Cleanup emitter transform from all the SDKs #853

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Cleanup emitter transform from all the SDKs #853

merged 2 commits into from
Aug 21, 2023

Conversation

edolix
Copy link
Contributor

@edolix edolix commented Aug 8, 2023

Description

This PR includes all the other stacked PRs Ammar created to remove the EventEmitter transform pipeline.

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

No changes required

@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2023

🦋 Changeset detected

Latest commit: f6243f6

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

This PR includes changesets to release 8 packages
Name Type
@signalwire/realtime-api Patch
@signalwire/webrtc Patch
@signalwire/core Patch
@signalwire/js Patch
@sw-internal/e2e-realtime-api Patch
@sw-internal/stack-tests Patch
@sw-internal/e2e-js 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

* Remove emitter transform for the Video Web API

* pubSubChannel comment

* test script update

* remove transform pipeline for video.recording.list

* emit the room.joined event through new emitter

* test roomSessionStreaming with new emitter

* recording list with new emitter

* playback and stream list with new emitter

* Update roomSessionStreaming.spec.ts

* init video worker with video stream worker

* video record worker init

* start recording and stream function with new emitter

* e2e test cases with new record and stream workers

* video playback worker with new emitter

* room.joined event emit through new emitter

* new emitter for video manager

* fix unit test case for the video manager

* remove getEmitterTransform from the BaseRoomSession

* remove events from the old videoAPIWorker

* enable end to end test for realtime video

* enable e2e for js

* listen for member.talking events through new emitter

* handle room.subscribed with base emitter

* listen for event through new emitter is e2e realtime

* consider room.left event from the new emitter

* fix _off event for realtime room session

* override on, once, off in base connection

* override on, once, off in base connection

* spawn member position worker by the video worker

* temporary skip the bad network test

* temporary skip the bad network test

* fix roomSession playback and recording serialization

* cleanup the code

* fix ci cd typo

* fix member position worker test

* override event attach in BaseRoomSession

* remove video prefix from the event

* fix undefined error in mediaElementSaga

* prefix video on subscription

* enable roomSessionBadNetwork e2e test cases

* overriden functions for room session device and screen share

* changeset include

* override the subscription method for video manager

* fix video manager unit test

* fix room session member unit test

* fix TS issues

* remove TODO from the subscribe worker

* fix TS Call issues

* add unit test for strip namespace function

* use super .once for realtime room session

* fix subscription bug for realtime api

* fix type for events in realtime room session

* fix race condition for task namespace

* Remove applyEmitterTransform function from all the SDKs  (#839)

* Remove applyEmitterTransform function from all the SDKs

* allow CI to run on the current branch

* changeset include

* remove branch from the CI

* Remove eventsPrefix from the namespaces (#840)

* Remove eventsPrefix from the namespaces

* run the CI

* fix base component unit test

* remove event prefix from the base component

* include changeset

* remove branch from the CI

* Shared functions enhancement (#843)

* Shared functions enhancement

* run the CI

* rename room session stream and record instances

* rename all the RT methods

* include changeset

* fix start recording test

* remove branch from the CI

* fix member list update event

* Introduce the session emitter and eliminate the global emitter (#845)

* Eliminate the pubSubChannel and global emitter

* run the CI

* introduce session emitter

* fix unit tests

* fix unit tests

* use session events through new session emitter

* emit through session emitter in pubSubSaga

* fix test case for messaging client

* video sdk without global emitter

* ts improve

* remove the old event listeners from the BaseComponent

* remove find namespace from the member position worker

* cleanup base component utilities

* cleanup and remove the attach listeners

* cleanup the old emitter usage

* remove _on, _once, _off

* improve ts typings

* fix build issue

* remove proxy utils

* remove unused getCompoundEvents

* include changeset

* fix build issue

* Cleanup the global emitter (#848)

* Cleanup the global emitter

* run the CI

* fix build issue

* fix ts issues

* include changeset

* Eliminate the multicast pubsub channel (#850)

* emit through session emitter instead of put on pubsub channel

* run the CI

* remove the usage of pubsub channel

* include changeset

* cleanup unused actions

* fix build issue

* Attach listeners without the namespace prefix (#851)

* fix unit tests

* video sdk without global emitter

* ts improve

* cleanup the old emitter usage

* Attach listeners without the namespace prefix

* fix build issue

* include changeset

* stop the voicePass.test

* allow voicePass.test

* fallback to the prev e2e task test

* emit through new emitter in task API
@iAmmar7 iAmmar7 temporarily deployed to github-pages August 16, 2023 18:31 — with GitHub Actions Inactive
@edolix edolix changed the title WIP: Cleanup emitter transform from all the SDKs Cleanup emitter transform from all the SDKs Aug 17, 2023
@edolix edolix merged commit 5e1ff11 into main Aug 21, 2023
11 of 13 checks passed
@edolix edolix deleted the next branch August 21, 2023 14:40
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