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

eventemitter: fix once with array using promise #1046

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

andydunstall
Copy link
Contributor

when looking at upgrading the realtime test suite to use the latest SDK found await conn.once(['foo', 'bar']) no longer works using promises, throwing Invalid arguments (though callbacks is fine ie conn.once(['foo', 'bar'], () => {})

looks like a check was added in 32f8d04#diff-21811b221b0e30b57b9d5c084d2fd83f1709eb97a129e25732474b92b8fb63a6R237 - though I can't see what this is checking given its just calling itself so will be checked later (or if its just so typescript doesn't complain)?

@github-actions github-actions bot temporarily deployed to staging/pull/1046/bundle-report August 26, 2022 11:01 Inactive
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, thanks

@owenpearson owenpearson merged commit cb3d6f8 into main Aug 30, 2022
@owenpearson owenpearson deleted the bugfix/event-emitter-with-promise branch August 30, 2022 10:34
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.

2 participants