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 missing properties on WebSocket MessageEvent #845

Merged
merged 1 commit into from Oct 13, 2022

Conversation

FrederikBolding
Copy link
Member

Fixes missing properties on WebSocket MessageEvent. We were spreading the object instead of navigating the prototype chain to look for the properties, as such, not all properties were correctly copied to the event.

Fixes #836

@FrederikBolding FrederikBolding requested a review from a team as a code owner October 12, 2022 09:57
composedPath: () => [this],
},
]);
// TODO: Should we migrate this to use a wrapper class?
Copy link
Member Author

Choose a reason for hiding this comment

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

We could replace this entire thing with a wrapper class same as we do for responses 🤔

@FrederikBolding FrederikBolding merged commit ed3d650 into main Oct 13, 2022
@FrederikBolding FrederikBolding deleted the fb/fix-websocket-message-event branch October 13, 2022 16:20
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.

Snaps Websockets message doesn't contain data
2 participants