Skip to content

Conditionally register WebSocket Cxx module - #12218

Merged
Julio César Rocha (JunielKatarn) merged 2 commits into
microsoft:mainfrom
jurocha-ms:ws-skipcxx
Oct 10, 2023
Merged

Conditionally register WebSocket Cxx module#12218
Julio César Rocha (JunielKatarn) merged 2 commits into
microsoft:mainfrom
jurocha-ms:ws-skipcxx

Conversation

@JunielKatarn

@JunielKatarn Julio César Rocha (JunielKatarn) commented Oct 10, 2023

Copy link
Copy Markdown
Contributor
  • Conditionally register WebSocket Cxx module
  • Change files

Description

Allow using the Cxx WebSocket module instead of its TurboModule variant.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Using the WebSocket TurboModule could lead to a memory leak on application shutdown.
This issue is currently under investigation.

What

  • Define enum entry facebook::react::DevSettings::useWebSocketTurboModule.
  • Conditionally register WebSocket Cxx module based on React context's UseWebSocketTurboModule property.
Microsoft Reviewers: Open in CodeFlow

@JunielKatarn
Julio César Rocha (JunielKatarn) merged commit 3875e1f into microsoft:main Oct 10, 2023
Julio César Rocha (JunielKatarn) added a commit that referenced this pull request Oct 11, 2023
* Conditionally register WebSocket Cxx module

* Change files
Julio César Rocha (JunielKatarn) added a commit that referenced this pull request Oct 11, 2023
* Conditionally register WebSocket Cxx module

* Change files
Andrew Coates (acoates-ms) added a commit that referenced this pull request Oct 11, 2023
* Conditionally register WebSocket Cxx module (#12218)

* Conditionally register WebSocket Cxx module

* Change files

* Remove change files

* Change files

---------

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
Yajur Grover (YajurG) pushed a commit to YajurG/react-native-windows that referenced this pull request Oct 18, 2023
* Conditionally register WebSocket Cxx module

* Change files
Andrew Coates (acoates-ms) added a commit that referenced this pull request Oct 18, 2023
* Conditionally register WebSocket Cxx module (#12218)

* Conditionally register WebSocket Cxx module

* Change files

* Remove change files

* Change files

---------

Co-authored-by: Andrew Coates <30809111+acoates-ms@users.noreply.github.com>
Co-authored-by: Jon Thysell <jthysell@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants