Skip to content

[0.67] Avoid capturing raw this pointer in WebSocket module #9296

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 4 commits into from
Dec 27, 2021

Conversation

JunielKatarn
Copy link
Contributor

@JunielKatarn JunielKatarn commented Dec 17, 2021

Microsoft Reviewers: Open in CodeFlow

JunielKatarn and others added 4 commits December 17, 2021 16:21
* Use implicit (brace) constructor for getMethods()

* Define CxxModuleHolder

* Make m_asyncStorageManager shared_ptr

* Change files

* Initialize m_holder

* Implement WebSocketModule::SharedState

* Move ResourceFactory into shared state

* Revert AsyncStorage changes

* Add URL argument to IWebSocketResource::Connect

* Drop URL from factory method

* Update BeastWebSocketResource

* Handle malformed Uris within ::Connect()

* Remove urlString argument from IWebSocketResource::Make

* Use constexpr for commont test URLs

* Remove redundant move in to_hstring

* Add/remove std::move where applicable

Co-authored-by: Nick Gerleman <ngerlem@microsoft.com>
* Set MessageReceived to self-capturing lambda

* clang format

* Change files
@JunielKatarn JunielKatarn merged commit 372ce65 into microsoft:0.67-stable Dec 27, 2021
@JunielKatarn JunielKatarn deleted the wsrc-onmsg-ptr-67 branch December 27, 2021 23:55
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.

2 participants