Skip to content

feat: spec compliance for web socket module #4

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

Merged
merged 6 commits into from
Nov 2, 2024
Merged

Conversation

grabbou
Copy link
Collaborator

@grabbou grabbou commented Oct 31, 2024

  • added missing properties (onmessage, onerror etc)
  • added ping
  • added protocols support
  • stubbed extensions and bufferedAmount
  • fixed accessors (properties that are readonly are readonly)
  • fixed an error when wrong event-target-shim was resolved by TypeScript
  • emitting proper instances of events, instead of objects
  • removed structs in C++ in favor of simple arguments
  • throwing error in places that do not follow specification (yet)

@grabbou grabbou requested a review from dratwas October 31, 2024 22:36
@grabbou
Copy link
Collaborator Author

grabbou commented Oct 31, 2024

CC: @thiagobrez this builds on top of your previous PR. We're now exporting classes of events, this should help!

@thiagobrez
Copy link
Collaborator

@grabbou nice, this looks way better!

"react-native-nitro-modules": "^0.14.0",
"web-streams-polyfill": "^4.0.0"
},
"dependencies": {
"event-target-shim": "^6.0.2"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this in both dependencies and devDependencies?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No and I believe I clean this up later! I was definitely moving things around too fast!

@grabbou grabbou merged commit 87db05a into main Nov 2, 2024
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.

3 participants