Skip to content

[0.65] Avoid capturing raw this pointer in WebSocket module - #9299

Merged
5 commits merged into
microsoft:0.65-stablefrom
jurocha-ms:wsrc-onmsg-ptr-65
Jan 27, 2022
Merged

[0.65] Avoid capturing raw this pointer in WebSocket module#9299
5 commits merged into
microsoft:0.65-stablefrom
jurocha-ms:wsrc-onmsg-ptr-65

Conversation

@JunielKatarn

@JunielKatarn Julio César Rocha (JunielKatarn) commented Dec 17, 2021

Copy link
Copy Markdown
Contributor
Microsoft Reviewers: Open in CodeFlow

* 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 Julio César Rocha (JunielKatarn) added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Jan 27, 2022
@ghost

Copy link
Copy Markdown

Hello Julio César Rocha (@JunielKatarn)!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost
ghost merged commit 6421adf into microsoft:0.65-stable Jan 27, 2022
@JunielKatarn
Julio César Rocha (JunielKatarn) deleted the wsrc-onmsg-ptr-65 branch March 8, 2022 01:41
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants