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

Export EventEmitter so we can use it in other SDKs #1819

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

vladvelici
Copy link
Contributor

@vladvelici vladvelici commented Jul 19, 2024

Make EventEmitter a static field on BaseRealtime so it can be used in other SDKs.

This means the public API doesn't change but we can still make use of EventEmitter without duplicating the code in other SDKs. We'll use this in Chat.

https://ably.atlassian.net/browse/CHA-390

The PR in chat to use this ably/ably-chat-js#304

@github-actions github-actions bot temporarily deployed to staging/pull/1819/bundle-report July 19, 2024 10:45 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1819/typedoc July 19, 2024 10:45 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1819/features July 19, 2024 10:46 Inactive
@vladvelici vladvelici marked this pull request as ready for review July 23, 2024 09:32
@vladvelici vladvelici requested a review from owenpearson July 23, 2024 09:32
Copy link
Member

@owenpearson owenpearson left a comment

Choose a reason for hiding this comment

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

LGTM! with one minor nitpick:

src/common/lib/client/baserealtime.ts Outdated Show resolved Hide resolved
… other SDKs

This means the public API doesn't change but we can still make use of EventEmitter without duplicating the code in other SDKs. We'll use this in Chat.
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.

3 participants