Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed issue where websocket hook did not call original completion #609

Merged
merged 1 commit into from
Aug 10, 2022
Merged

Fixed issue where websocket hook did not call original completion #609

merged 1 commit into from
Aug 10, 2022

Conversation

ogres
Copy link
Contributor

@ogres ogres commented Jul 14, 2022

Send message hook was changing original completion instead of wrapping it in a hook.
Similar hook already exists for receivemessage functionality, but it was not working for send-message, original completion was never called.
Adjusted code to create a new completionHook which records the information and then original completion block.

I also updated API-Key for piesocket and added a message after sending message, to make sure that completion is being called and at least success/failure message is logged.

@ogres
Copy link
Contributor Author

ogres commented Aug 8, 2022

@NSExceptional could you have a look at this one?

Copy link
Collaborator

@NSExceptional NSExceptional left a comment

Choose a reason for hiding this comment

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

Nice catch, thank you! Also, sorry, I must have totally missed this PR. Thanks for pinging me.

@ogres
Copy link
Contributor Author

ogres commented Aug 10, 2022

Nice catch, thank you! Also, sorry, I must have totally missed this PR. Thanks for pinging me.

I've added nullability check
Thanks for the review 👍

@NSExceptional NSExceptional merged commit 1b91bc9 into FLEXTool:master Aug 10, 2022
@ogres ogres deleted the fix/websocket-message-send-hook branch August 10, 2022 11:50
matrush pushed a commit to matrush/FLEX that referenced this pull request Aug 30, 2022
Co-authored-by: Sergo Beruashvili <sergo.beruashvili@daimler.com>
timonus pushed a commit to timonus/FLEX that referenced this pull request May 1, 2023
Co-authored-by: Sergo Beruashvili <sergo.beruashvili@daimler.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants