Skip to content

NOISSUE - Update mGate version in http and ws adapters#2825

Merged
dborovcanin merged 5 commits intoabsmach:mainfrom
arvindh123:websocket_upgrade
Apr 25, 2025
Merged

NOISSUE - Update mGate version in http and ws adapters#2825
dborovcanin merged 5 commits intoabsmach:mainfrom
arvindh123:websocket_upgrade

Conversation

@arvindh123
Copy link
Copy Markdown
Contributor

@arvindh123 arvindh123 commented Apr 17, 2025

What type of PR is this?

What does this do?

Which issue(s) does this PR fix/relate to?

  • Related Issue #
  • Resolves #

Have you included tests for your changes?

Did you document any new/modified feature?

Notes

Should be merged after https://github.com/absmach/mgate/pull/87

@arvindh123 arvindh123 requested a review from a team as a code owner April 17, 2025 16:35
@arvindh123 arvindh123 force-pushed the websocket_upgrade branch 4 times, most recently from f2182c7 to 6c34ca8 Compare April 22, 2025 18:10
@dborovcanin
Copy link
Copy Markdown
Collaborator

@arvindh123 mGate PR has been merged. Please update the PR.

Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 25, 2025

Codecov Report

Attention: Patch coverage is 34.93976% with 108 lines in your changes missing coverage. Please review.

Project coverage is 32.28%. Comparing base (cc9fc70) to head (2729d75).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
ws/client.go 53.84% 31 Missing and 5 partials ⚠️
ws/api/logging.go 0.00% 21 Missing ⚠️
ws/handler.go 0.00% 17 Missing ⚠️
ws/api/endpoints.go 54.54% 7 Missing and 3 partials ⚠️
ws/adapter.go 18.18% 9 Missing ⚠️
ws/api/metrics.go 0.00% 8 Missing ⚠️
ws/tracing/tracing.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2825      +/-   ##
==========================================
+ Coverage   27.53%   32.28%   +4.74%     
==========================================
  Files         351       83     -268     
  Lines       55423    16245   -39178     
==========================================
- Hits        15260     5244   -10016     
+ Misses      39413    10732   -28681     
+ Partials      750      269     -481     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Arvindh <arvindh91@gmail.com>
Comment thread ws/api/endpoints.go Outdated
}

responseHeader := http.Header{}
responseHeader.Set("X-SMQ-WS-Session-ID", sessionID)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we use this custom header?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

To identify the WS client.

If two ws client uses same thing id (client id), then if any one disconnect , another will not get message
So to avoid it, we need unique id for each ws connection.

Signed-off-by: Arvindh <arvindh91@gmail.com>
@dborovcanin dborovcanin merged commit 5ea3cbd into absmach:main Apr 25, 2025
8 of 9 checks passed
@dborovcanin dborovcanin deleted the websocket_upgrade branch April 25, 2025 12:08
@dborovcanin dborovcanin restored the websocket_upgrade branch April 25, 2025 12:08
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