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

fix: use correct sync event signature in base Transport class #1094

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

owenpearson
Copy link
Member

Resolves #1093

@owenpearson owenpearson merged commit 388ca30 into main Dec 13, 2022
@owenpearson owenpearson deleted the fix-sync-emit-signature branch December 13, 2022 13:11
@@ -156,7 +156,7 @@ abstract class Transport extends EventEmitter {
case actions.SYNC:
if (message.connectionId !== undefined) {
/* a transport SYNC */
this.emit('sync', message.connectionId, message);
this.emit('sync', message.connectionId, message.connectionId);
Copy link

Choose a reason for hiding this comment

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

Thanks for the fix! Is it expected to have connectionId twice?

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.

React Native crash because connectionSerial type is object instead of number
3 participants